Add sort, but just to API. Based on conversation with @onyxfish, this should be used with care as it will blow up for large-ish datasets.
Merge pull request #876 from newsapps/master

Add sorting to API