Handle paging for entries with identical date

Paging now works even when many entries have the same date.
SQL speed could probably be improved by testing first on date, and then on CONCAT.
Also, having an index on date would probably help too.