Use binary sort to sort unordered array.