Index: trunk/phase3/includes/WatchlistEditor.php |
— | — | @@ -208,6 +208,9 @@ |
209 | 209 | $sql = "SELECT wl_namespace, wl_title, page_id, page_len, page_is_redirect |
210 | 210 | FROM {$watchlist} LEFT JOIN {$page} ON ( wl_namespace = page_namespace |
211 | 211 | AND wl_title = page_title ) WHERE wl_user = {$uid}"; |
| 212 | + if ( ! $dbr->implicitOrderby() ) { |
| 213 | + $sql .= "ORDER BY wl_title'; |
| 214 | + } |
212 | 215 | $res = $dbr->query( $sql, __METHOD__ ); |
213 | 216 | if( $res && $dbr->numRows( $res ) > 0 ) { |
214 | 217 | $cache = LinkCache::singleton(); |