Pregunta de entrevista de RedDoorz

Write an algorithm to sort all elements in an array.