fix sort
Merge pull request #34 from isombyt/sort_fix

fix sort