Order categories alphabetically.
git-svn-id: https://develop.svn.wordpress.org/trunk@1324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4f3436a5d4
commit
ed5af7cec7
@ -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
Block a user