Pergunta de entrevista da empresa Innotech (Russia)

Q: There is a list of objects, write code that sorts by several attributes.