}
/**
+ * TODO: Allow sorting by count. We need to have a unique index to do this
+ * properly.
+ *
* @addtogroup SpecialPage
* @addtogroup Pager
*/
}
function getIndexField() {
- return array( 'abc' => 'cat_title', 'count' => 'cat_pages' );
+# return array( 'abc' => 'cat_title', 'count' => 'cat_pages' );
+ return 'cat_title';
}
- protected function getOrderTypeMessages() {
- return array( 'abc' => 'special-categories-sort-abc',
- 'count' => 'special-categories-sort-count' );
- }
+# protected function getOrderTypeMessages() {
+# return array( 'abc' => 'special-categories-sort-abc',
+# 'count' => 'special-categories-sort-count' );
+# }
- protected function getDefaultDirection() {
- return array( 'abc' => false, 'count' => true );
+ protected function getDefaultDirections() {
+# return array( 'abc' => false, 'count' => true );
+ return false;
}
/* Override getBody to apply LinksBatch on resultset before actually outputting anything. */