From ed5af7cec7cc926a1880a9d525a18228213aa299 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 20 May 2004 11:41:54 +0000 Subject: [PATCH] Order categories alphabetically. git-svn-id: https://develop.svn.wordpress.org/trunk@1324 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 2661cd9e63..f0f78826c1 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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);