Introduction

This plugin alphabetizes the My Sites list in a Multisite WordPress installation.

How to run

Unzip the plugin inside of the wp-content/plugins folder.  Go to the admin section of WordPress and select plugins.  Activate the plugin.

<?php
/*
Plugin Name: Reorder Multisites
Plugin URI: https://github.com/RichieLeahey/reorder-multisites
Description: This plugin alphabetizes the My Sites list in a Multisite WordPress installation.
Version: 1.0.0
Author: Richie Leahey
Author URI: https://richieleahey.com
*/

add_filter('get_blogs_of_user','reorder_multisites');
function reorder_multisites($sites) {
	$sort_sites = create_function('$pointer,$next','return strcasecmp($pointer->blogname,$next->blogname);');
	uasort($sites, $sort_sites);
	return $sites;
}