Pregunta de entrevista de Capsule

Sort an array of objects based on a few different fields