Followup r74298: add ORDER BY wl_namespace, wl_title to the query in WatchlistEditor...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 8 Jan 2011 16:01:31 +0000 (16:01 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 8 Jan 2011 16:01:31 +0000 (16:01 +0000)
includes/WatchlistEditor.php

index a1a3364..b5a994d 100644 (file)
@@ -213,7 +213,7 @@ class WatchlistEditor {
                                        array( 'wl_namespace', 'wl_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ),
                                        array( 'wl_user' => $user->getId() ),
                                        __METHOD__,
-                                       $dbr->implicitOrderby() ? array( ) : array( 'ORDER BY' => 'wl_title' ),
+                                       array( 'ORDER BY' => 'wl_namespace, wl_title' ),
                                        array( 'page' =>
                                                array( 'LEFT JOIN', 'wl_namespace = page_namespace AND wl_title = page_title' ) )
                                );