Lucid Software interview question

Sort an array of objects in python