Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -672,10 +672,10 @@ |
673 | 673 | } |
674 | 674 | $db = wfGetDB( DB_SLAVE ); |
675 | 675 | $tables = array( 'page', 'categorylinks' ); |
676 | | - $fields = array( 'cl_from', 'cl_sortkey', 'page_namespace', 'page_title' ); |
| 676 | + $fields = array( 'page_namespace', 'page_title' ); |
677 | 677 | $options = array( |
678 | 678 | 'USE INDEX' => 'cl_sortkey', |
679 | | - 'ORDER BY' => 'cl_sortkey', |
| 679 | + 'ORDER BY' => 'cl_type, cl_sortkey', |
680 | 680 | 'LIMIT' => $limit + 1, |
681 | 681 | ); |
682 | 682 | $where = array( |
Index: trunk/extensions/intersection/DynamicPageList.php |
— | — | @@ -499,7 +499,7 @@ |
500 | 500 | $sSqlSort = 'page_id'; # Since they're never reused and increasing |
501 | 501 | break; |
502 | 502 | case 'categorysortkey': |
503 | | - $sSqlSort = 'c1.cl_sortkey'; |
| 503 | + $sSqlSort = "c1.cl_type $sSqlOrder, c1.cl_sortkey"; |
504 | 504 | break; |
505 | 505 | case 'popularity': |
506 | 506 | $sSqlSort = 'page_counter'; |