Add sort function.

Evan did 95% of the work, but forgot about the F2 wrapper.
Add sortBy function.
Use Utils.cmp for sorting
Add sortWith
Merge pull request #355 from mgold/sort

Add sorting (targeting dev)