Fix sorting
Merge pull request #164 from erwinwinder/master

Fix sorting