Fix serious oversight in entry sorting code. Oops.
Merge pull request #117 from Gaerzi/master

Fix serious oversight in entry sorting code. Oops.