case insensitive sorting. props Nazgul. fixes #3108

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-10-04 03:50:14 +00:00
parent 3302eb70fa
commit 052b0b8c37
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ foreach ($menu as $menu_page) {
} }
do_action('admin_menu', ''); do_action('admin_menu', '');
ksort($menu); // make it all pretty uksort($menu, "strnatcasecmp"); // make it all pretty
if (! user_can_access_admin_page()) { if (! user_can_access_admin_page()) {
die( __('You do not have sufficient permissions to access this page.') ); die( __('You do not have sufficient permissions to access this page.') );

View File

@ -206,7 +206,7 @@ default:
<table cellpadding="3" cellspacing="3" width="100%"> <table cellpadding="3" cellspacing="3" width="100%">
<?php <?php
foreach($roleclasses as $role => $roleclass) { foreach($roleclasses as $role => $roleclass) {
ksort($roleclass); uksort($roleclass, "strnatcasecmp");
?> ?>
<tr> <tr>

View File

@ -1193,7 +1193,7 @@ function merge_filters($tag) {
} }
if ( isset($wp_filter[$tag]) ) if ( isset($wp_filter[$tag]) )
ksort( $wp_filter[$tag] ); uksort( $wp_filter[$tag], "strnatcasecmp" );
} }
function apply_filters($tag, $string) { function apply_filters($tag, $string) {