Did the sorting function.

Now I need to to the search function. I think I can assume it's sorted,
and just do regular run of the mill binary search. I think that won't be too hard.