Fix bug in sorting of entryList