Guidewire interview question

sort an array of integer