Ticket #1780: order_cats_by_name.diff
File order_cats_by_name.diff, 599 bytes (added by , 20 years ago) |
---|
-
wp-admin/admin-functions.php
430 430 431 431 function return_categories_list($parent = 0) { 432 432 global $wpdb; 433 return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY cat egory_countDESC");433 return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY cat_name DESC"); 434 434 } 435 435 436 436 function get_nested_categories($default = 0, $parent = 0) {