Bugfix in sorting function
Merge pull request #2 from DaCHRlS/patch-1

Bugfix in sorting function