Microsoft interview question

Sort an unordered array of objects.