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.