Add sort function.

Evan did 95% of the work, but forgot about the F2 wrapper.
Add sortBy function.