Pregunta de entrevista de OpenSense Labs

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