iHeartMedia interview question

how to sort an array