Question d’entretien chez RedDoorz

Write an algorithm to sort all elements in an array.