Example code from Stack Exchange on how to sort the My Sites listing on both the page and in the admin bar dropdown:

function dccf_sort_my_sites($blogs) {
	$f = create_function('$a,$b','return strcasecmp($a->blogname,$b->blogname);');
	uasort($blogs, $f);
	return $blogs;
}
add_filter('get_blogs_of_user', 'dccf_sort_my_sites');

Leave a Reply

Your email address will not be published. Required fields are marked *