fixed sorting problem
Merge pull request #16 from geduldia/master

fixed sorting problem