summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-11 02:39:51 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-11 02:39:51 -0700
commit992ff4c2364496141bd077a579abbe126bf6387e (patch)
tree4d747b47399bd61348cedeb10c6e37d18127c240 /usr
parent0e3aa71cd00836a3621ca68cb7e060b0d07e1327 (diff)
downloadpfsense-992ff4c2364496141bd077a579abbe126bf6387e.zip
pfsense-992ff4c2364496141bd077a579abbe126bf6387e.tar.gz
Sort opt10+ and wlan10+ more like the way that would be expected.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces_assign.php2
-rw-r--r--usr/local/www/interfaces_wireless_edit.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 511f41b..2e368e4 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -309,7 +309,7 @@ if ($_GET['act'] == "add") {
$descr = "OPT{$i}";
$config['interfaces'][$newifname] = array();
$config['interfaces'][$newifname]['descr'] = $descr;
- ksort($config['interfaces']);
+ uksort($config['interfaces'], "strnatcmp");
}
/* Find an unused port for this interface */
diff --git a/usr/local/www/interfaces_wireless_edit.php b/usr/local/www/interfaces_wireless_edit.php
index 6f65e0f..1e9419e 100644
--- a/usr/local/www/interfaces_wireless_edit.php
+++ b/usr/local/www/interfaces_wireless_edit.php
@@ -58,7 +58,7 @@ function clone_inuse($num) {
}
function clone_compare($a, $b) {
- return strcmp($a['cloneif'], $b['cloneif']);
+ return strnatcmp($a['cloneif'], $b['cloneif']);
}
$portlist = get_interface_list();
OpenPOWER on IntegriCloud