Frage im Vorstellungsgespräch bei SugarAI

How do you sort an array of objects given sorting constraints.