Accenture interview question

Sort an array using binary search algorithm