fix sort order issues
Merge pull request #4 from genehallman/master

Fix sort order