Skywise interview question

how to sort an array?