Pregunta de entrevista de Virtusa

How the sorting is done in collections