Question d’entretien chez Google

Sort array of objects with unique ids