[wp-trac] [WordPress Trac] #3108: case insensitive array sorting

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 5 13:22:15 GMT 2006


#3108: case insensitive array sorting
----------------------------+-----------------------------------------------
 Reporter:  mattyrob        |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  lowest          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.0.4    
 Severity:  trivial         |    Keywords:           
----------------------------+-----------------------------------------------
 Several arrays are sorted using ksort before being displayed in the admin
 section, examples include Plugins and Users & Authors.

 ksort is a case sensitive method and as such all capitilised entries rank
 higher than non-capitalised entires.

 Perhaps using:

 uksort($myArray, "strnatcasecmp");

 would allow all entires to be displayed aplhabetically.

 I've tried this amendment in wp-admin/users.php and it worked for me.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3108>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list