Ticket #1780: order_cats_by_name.diff

File order_cats_by_name.diff, 599 bytes (added by davidhouse, 7 years ago)
  • wp-admin/admin-functions.php

     
    430430 
    431431function return_categories_list($parent = 0) { 
    432432        global $wpdb; 
    433         return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY category_count DESC"); 
     433        return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY cat_name DESC"); 
    434434} 
    435435 
    436436function get_nested_categories($default = 0, $parent = 0) {