Pergunta de entrevista da empresa OpenSense Labs

Sort an array (in case of equality keep the relative ordering)