Sort Sites A-Z or/and by Domains and ID

Hi Heros

Is there a way to sort the sites displaying in the list with their ID and sorted A-Z?

Kind regards

  • Andi
    • The Exporter


    I created a file named: sort-my-sites.php - in mu-plugins
    and I inserted the code by Otto

    Plugin Name: Sort My-Sites
    Description: Sorts the My Sites listing on both the page and in the 3.3 admin bar dropdown
    Author: Otto
    function sort_my_sites($blogs) {
            $f = create_function('$a,$b','return strcasecmp($a->blogname,$b->blogname);');
            uasort($blogs, $f);
            return $blogs;

    That works just perfectly to sort the names.

    It won't give you an option to sort A-Z or Z-A or Creation Date or Admin Name
    It also has no option to show the ID of the site behind the name (or in front) nor is it able to sort via ID

    Therefore I will write a feature request to get that done.

    Kind regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.