Added sortBy.
Merge pull request #4 from joneshf/master

Added sortBy.