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

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 17 12:48:03 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         |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by mattyrob):

 natcasesort doesn't work in wp-admin.user.php
 At line 375 there is a foreach statement as follows
 foreach($roleclasses as $role => $roleclass) {
         ksort($roleclass); //current code
         //uksort($roleclass, "strnatcasecmp"); //list of names appear in
 alphabetical order irrespective of case
         //natcasesort($roleclass); // list appears in a very unusual order
 that I'm at a loss to explain

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


More information about the wp-trac mailing list