summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-xusr/local/www/system_routes_edit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php
index e83b88a..4bb2e6c 100755
--- a/usr/local/www/system_routes_edit.php
+++ b/usr/local/www/system_routes_edit.php
@@ -36,16 +36,16 @@
##|*MATCH=system_routes_edit.php*
##|-PRIV
+function staticroutecmp($a, $b) {
+ return strcmp($a['network'], $b['network']);
+}
+
function staticroutes_sort() {
global $g, $config;
if (!is_array($config['staticroutes']['route']))
return;
- function staticroutecmp($a, $b) {
- return strcmp($a['network'], $b['network']);
- }
-
usort($config['staticroutes']['route'], "staticroutecmp");
}
OpenPOWER on IntegriCloud