fixed sorting stuff
Merge pull request #43 from aktse/master

fixed sorting stuff