cleaned up sorting code
Merge branch 'develop' of https://github.com/nrhinnant/GeoPost into develop