From a5249874001fa4ce91704ee1cc1891c0eb246025 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 26 Nov 2013 18:38:42 -0200 Subject: Stop sorting static routed and leave user decide the order --- usr/local/www/system_routes_edit.php | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php index 110375b..4fc531e 100755 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -39,19 +39,6 @@ ##|*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; - - usort($config['staticroutes']['route'], "staticroutecmp"); -} - require_once("guiconfig.inc"); require_once("filter.inc"); require_once("util.inc"); @@ -209,7 +196,6 @@ if ($_POST) { } } file_put_contents("{$g['tmp_path']}/.system_routes.apply", serialize($toapplylist)); - staticroutes_sort(); mark_subsystem_dirty('staticroutes'); -- cgit v1.1