From 48518db91e1cc5bf9db981b34b18fe813878ee57 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 31 Jul 2008 16:14:32 +0000 Subject: [PATCH] Add an order by to the list of watched pages. --- includes/WatchlistEditor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index fcfdb78294..54f9d81159 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -208,6 +208,9 @@ class WatchlistEditor { $sql = "SELECT wl_namespace, wl_title, page_id, page_len, page_is_redirect FROM {$watchlist} LEFT JOIN {$page} ON ( wl_namespace = page_namespace AND wl_title = page_title ) WHERE wl_user = {$uid}"; + if ( ! $dbr->implicitOrderby() ) { + $sql .= "ORDER BY wl_title'; + } $res = $dbr->query( $sql, __METHOD__ ); if( $res && $dbr->numRows( $res ) > 0 ) { $cache = LinkCache::singleton(); -- 2.20.1