Add missing ORDER BY clause in getTombstoneRecords