[wp-trac] [WordPress Trac] #15828: Alphabetized My Sites

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 15 15:52:49 UTC 2010


#15828: Alphabetized My Sites
-------------------------+-----------------------------
 Reporter:  scep         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Multisite    |    Version:
 Severity:  minor        |   Keywords:
-------------------------+-----------------------------
 For installs that have lots of sites it would be easier to browse if the
 sites are alphabetized. I add the following code to our install after each
 update. It would be nice if this was the default.

 after line 72: reset( $blogs );
 {{{
         function cmp($a, $b){
                 if ($a->blogname == $b->blogname)return 0;
                 else return ($a->blogname < $b->blogname) ? -1 : 1;
         }
         uasort($blogs, 'cmp');

 }}}

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


More information about the wp-trac mailing list