Fix sorting of entries on tag pages