diff options
author | Scott Ullrich <sullrich@su.local> | 2009-09-11 13:34:09 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-09-11 13:34:27 -0400 |
commit | 4a8bc5a23db6e673894e816079580dd1dca829d5 (patch) | |
tree | d4d9347bd814696df1777e502fabdb081b47f322 /usr | |
parent | f441ab6809cdf358c321144bb74da1f550136b17 (diff) | |
download | pfsense-4a8bc5a23db6e673894e816079580dd1dca829d5.zip pfsense-4a8bc5a23db6e673894e816079580dd1dca829d5.tar.gz |
Add msort() which will sort lower and uppercase items teogether (packages for example). Sort packages by lower/upper. IE: arping, arpwatch, Backup
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index a1bfb5d..5187a99 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -114,9 +114,11 @@ include("head.inc"); foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name']; $pkg_names = array_keys($pkg_info); $pkg_keys = array(); + foreach($pkg_names as $name) if(!in_array($name, $instpkgs)) $pkg_keys[] = $name; - sort($pkg_keys); + $pkg_keys = msort($pkg_keys); + print_r($pkg_keys); if(count($pkg_keys) != 0) { foreach($pkg_keys as $key) { $index = &$pkg_info[$key]; |