From 052b0b8c3769d2a7c2c9ea18c722bb458f0c5ded Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 4 Oct 2006 03:50:14 +0000 Subject: [PATCH] case insensitive sorting. props Nazgul. fixes #3108 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4290 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 2 +- wp-admin/users.php | 2 +- wp-includes/functions.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index ed58186c2e..c95d60d1e1 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -55,7 +55,7 @@ foreach ($menu as $menu_page) { } do_action('admin_menu', ''); -ksort($menu); // make it all pretty +uksort($menu, "strnatcasecmp"); // make it all pretty if (! user_can_access_admin_page()) { die( __('You do not have sufficient permissions to access this page.') ); diff --git a/wp-admin/users.php b/wp-admin/users.php index 76a00cd443..8f58fe4dba 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -206,7 +206,7 @@ default: $roleclass) { - ksort($roleclass); + uksort($roleclass, "strnatcasecmp"); ?> diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 881b4f9037..9a2eb6a87c 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1193,7 +1193,7 @@ function merge_filters($tag) { } if ( isset($wp_filter[$tag]) ) - ksort( $wp_filter[$tag] ); + uksort( $wp_filter[$tag], "strnatcasecmp" ); } function apply_filters($tag, $string) {