added support for sorting
Merge pull request #1 from jasondoyle/master

added support for sorting