must sort for binary search. fixes a unit test.