you should test `sortEntriesByRank` as well