Order categories alphabetically.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-05-20 11:41:54 +00:00
parent 41380c81dc
commit 23e9576c66
1 changed files with 1 additions and 1 deletions

View File

@ -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);