Pocket Gems interview question

Sorting a list of some random type.