Added a sortBy method
Merge pull request #12 from ColinEberhardt/sortBy

Added a sortBy method