Order categories alphabetically.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
41380c81dc
commit
23e9576c66
|
@ -35,7 +35,7 @@ function get_nested_categories($default = 0) {
|
|||
$checked_categories[] = $default;
|
||||
}
|
||||
|
||||
$categories = $wpdb->get_results("SELECT * FROM $tablecategories ORDER BY category_parent DESC");
|
||||
$categories = $wpdb->get_results("SELECT * FROM $tablecategories ORDER BY category_parent DESC, cat_name ASC");
|
||||
$result = array();
|
||||
foreach($categories as $category) {
|
||||
$array_category = get_object_vars($category);
|
||||
|
|
Loading…
Reference in New Issue