diff options
author | jim-p <jimp@pfsense.org> | 2011-01-10 17:58:51 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-01-10 17:58:51 -0500 |
commit | 001cbed2004d83663547e049f7148cc7fe99477f (patch) | |
tree | d67396f32bae4348319c17087b2b8cdeebd3da31 | |
parent | c1261315729995efad1f878a0c7191cf6ffbc7c8 (diff) | |
download | pfsense-001cbed2004d83663547e049f7148cc7fe99477f.zip pfsense-001cbed2004d83663547e049f7148cc7fe99477f.tar.gz |
Sort installed packages in a case insensitive way on the widget and installed packages list.
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/installed_packages.widget.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index c544d73..48c9677 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -87,7 +87,7 @@ include("head.inc"); foreach($config['installedpackages']['package'] as $instpkg) { $instpkgs[] = $instpkg['name']; } - asort($instpkgs); + natcasesort($instpkgs); foreach ($instpkgs as $index => $pkgname): diff --git a/usr/local/www/widgets/widgets/installed_packages.widget.php b/usr/local/www/widgets/widgets/installed_packages.widget.php index dac1b25..3ecb0ec 100644 --- a/usr/local/www/widgets/widgets/installed_packages.widget.php +++ b/usr/local/www/widgets/widgets/installed_packages.widget.php @@ -60,7 +60,7 @@ $updateavailable = false; $instpkgs = array(); foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name']; - asort($instpkgs); + natcasesort($instpkgs); $y=1; foreach ($instpkgs as $index => $pkgname){ |