ApiQueryDeletedRevisions: Optimize ascending title generation
When generating titles rather than revids, it would be nice if we could
query with DISTINCT to get the titles directly instead of processing
every deleted revision for the title.
Sadly, it turns out this only works with dir=newer (dir=older is the
default). But that's probably better than nothing.