Index: branches/wmf/1.18wmf1/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -143,7 +143,9 @@ |
144 | 144 | $contWhere = "cl_sortkey $op $escSortkey OR " . |
145 | 145 | "(cl_sortkey = $escSortkey AND " . |
146 | 146 | "cl_from $op= $from)"; |
147 | | - |
| 147 | + // The below produces ORDER BY cl_sortkey, cl_from, possibly with DESC added to each of them |
| 148 | + $this->addWhereRange( 'cl_sortkey', $dir, null, null ); |
| 149 | + $this->addWhereRange( 'cl_from', $dir, null, null ); |
148 | 150 | } else { |
149 | 151 | // The below produces ORDER BY cl_sortkey, cl_from, possibly with DESC added to each of them |
150 | 152 | $this->addWhereRange( 'cl_sortkey', |