fixed sorting logic; added more tests
Merge branch 'master' of github.com:gxa/atlas