Author: nicdumz
Description:
proposed patch
The actual displayed list of Special:Whatlinkshere is a bit messy, since pages are being sorted by page_id.
With the current DB structure, it seems to me that it would be costly to alter the SQL queries to sort the results in any way.
This patch performs a manual usort() on the resulting set, after it has been truncated to $limit (the number of pages to show).
It does not alter which pages are being shown on each page : It only alters the sorting display on a per page basis. Namespace first, template transclusion second : The page is now sorted by namespace, and pages where the target page is trancluded come last.
Cheers :)
Version: 1.13.x
Severity: enhancement
Attached: