how to sort objects?