FactSet interview question

Sort an array using binary search