OSIsoft interview question

How to sort an array