Tiny hack to improve the WordPress plugin page
It really annoys me that the WordPress plugin administration page lists the plugins in a seemingly random order. Upon closer inspection, it’s actually the order they are discovered on disk, which isn’t necessarily the most useful, especially if you have a lot installed (like I do) and are scanning the list for something to activate/deactivate/etc. On my server, the list is essentially sorted in case-sensitive alpha order. I just wanted this to be sorted case-insensitively sorted.
So, I made a quick tweak to the plugins.php page to do this. Here’s the changes, if you’d like to do the same:
Right around line 73 of wp-admin/plugins.php (immediately following the call to get_plugins()), I added:
[code lang="php"]function iksort($a,$b) { return strcasecmp($a,$b); }
uksort($plugins, ‘iksort’);
[/code]
Next step: sorting the list of configurable plugins in the submenu under ‘Options’!