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