Order from A to Z instead of unsorted
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 29 May 2004 21:11:59 +0000 (21:11 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 29 May 2004 21:11:59 +0000 (21:11 +0000)
includes/SpecialDeadendpages.php

index 9e730b1..2e1335e 100644 (file)
@@ -4,22 +4,26 @@ require_once( "QueryPage.php" );
 
 class DeadendPagesPage extends PageQueryPage {
 
-    function getName( ) {
-       return "Deadendpages";
-    }
+       function getName( ) {
+               return "Deadendpages";
+       }
 
-    # LEFT JOIN is expensive
+       # LEFT JOIN is expensive
     
-    function isExpensive( ) {
-       return 1;
-    }
+       function isExpensive( ) {
+               return 1;
+       }
+
+       function sortDescending() {
+               return false;
+       }
     
-    function getSQL( $offset, $limit ) {
-       return "SELECT cur_namespace AS namespace, cur_title as title, 0 as value " . 
-         "FROM cur LEFT JOIN links ON cur_id = l_from " .
-         "WHERE l_from IS NULL " .
-         "AND cur_namespace = 0 " .
-         "AND cur_is_redirect = 0";
+       function getSQL( $offset, $limit ) {
+       return "SELECT cur_namespace AS namespace, cur_title as title, cur_title AS value " . 
+       "FROM cur LEFT JOIN links ON cur_id = l_from " .
+       "WHERE l_from IS NULL " .
+       "AND cur_namespace = 0 " .
+       "AND cur_is_redirect = 0";
     }
 }