From 40771247dd1da8ed6deb0d8532265df0885dabda Mon Sep 17 00:00:00 2001 From: Gabriel Reguly Date: Tue, 23 Aug 2016 17:26:16 -0300 Subject: [PATCH] Sort the "Network Activated" column by domain. Credit to: rebel.ga https://wordpress.org/support/topic/sort-order-25/ --- network-plugin-auditor.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/network-plugin-auditor.php b/network-plugin-auditor.php index 4fb735a..8629c2b 100644 --- a/network-plugin-auditor.php +++ b/network-plugin-auditor.php @@ -3,7 +3,7 @@ Plugin Name: Network Plugin Auditor Plugin URI: http://wordpress.org/support/plugin/network-plugin-auditor Description: Adds columns to your Network Admin on the Sites, Themes and Plugins pages to show which of your sites have each plugin and theme activated. Now you can easily determine which plugins and themes are used on your network sites and which can be safely removed. -Version: 1.9.1 +Version: 1.9.2 Author: Katherine Semel Author URI: http://bonsaibudget.com/ Network: true @@ -318,6 +318,9 @@ static function get_network_blog_list( ) { } } + // sort by domain name + uasort( $blog_list, function( $a, $b ) { return ( strcasecmp( $a['domain'], $b['domain'] ) ); } ); + //error_log( print_r( $blog_list, true ) ); return $blog_list; }