[wp-trac] Re: [WordPress Trac] #6952: non-latin category names not alpha sorted (broken in 2.5.1)

WordPress Trac wp-trac at lists.automattic.com
Sat May 10 01:24:01 GMT 2008


#6952: non-latin category names not alpha sorted (broken in 2.5.1)
--------------------------+-------------------------------------------------
 Reporter:  jeremyclarke  |        Owner:  jeremyclarke
     Type:  defect        |       Status:  new         
 Priority:  normal        |    Milestone:  2.5.2       
Component:  General       |      Version:  2.6         
 Severity:  normal        |   Resolution:              
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Comment (by jeremyclarke):

 oops, two corrections.

 1: I didn't create the _usort_terms_by_name() function, just used it.

 2: $args['orderby'] is an unfortunate victim of the wikiformatting, it
 should be
 {{{
         // Resort by name in PHP in case SQL didn't (for non-latin
 alphabets)
         if ( 'name' == $args['orderby'] )
                 usort( $terms, '_usort_terms_by_name' );

 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6952#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list