Pregunta de entrevista de PayNearby

how to sort an array?