From 065bd33d2ef1967d976e40842f4eb34f9a487a5f Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Sun, 12 Feb 2017 03:46:46 +0000 Subject: Fix incorrect sorting for various dropdown lists. --- src/etc/inc/gwlb.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/etc/inc/gwlb.inc') diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index f3e7904..d7cecc0 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -630,6 +630,9 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive } } unset($gateway); + + //Sort the array by GW name before moving on. + ksort($gateways_arr, SORT_STRING | SORT_FLAG_CASE); /* Loop through all interfaces with a gateway and add it to a array */ if ($disabled == false) { -- cgit v1.1