* Ordered the query results by disambiguation page title
authorYuri Astrakhan <yurik@users.mediawiki.org>
Tue, 29 Aug 2006 16:51:11 +0000 (16:51 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Tue, 29 Aug 2006 16:51:11 +0000 (16:51 +0000)
includes/SpecialDisambiguations.php

index f606782..0355c85 100644 (file)
@@ -78,7 +78,8 @@ class DisambiguationsPage extends PageQueryPage {
              .' AND pa.page_namespace = ' . NS_MAIN  # Limit to just articles in the main namespace
              .' AND pb.page_id = lb.tl_from'
              .' AND pb.page_namespace = la.pl_namespace'
-             .' AND pb.page_title = la.pl_title';
+             .' AND pb.page_title = la.pl_title'
+                        .' ORDER BY lb.tl_namespace, lb.tl_title';
 
         return $sql;
        }