From 754d81a5fb83477f8563e40099e53e5b71bee3a9 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Wed, 11 Mar 2009 03:35:55 +0100 Subject: [PATCH] Fix the status page ordering so that it uses the correct tier order --- usr/local/www/status_gateway_groups.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/status_gateway_groups.php b/usr/local/www/status_gateway_groups.php index 5ed5b52304..3a8d06bd11 100755 --- a/usr/local/www/status_gateway_groups.php +++ b/usr/local/www/status_gateway_groups.php @@ -91,6 +91,7 @@ include("head.inc"); $priorities[$itemsplit[1]] = true; } $priority_count = count($priorities); + ksort($priorities); echo ""; foreach($priorities as $number => $tier) { @@ -104,8 +105,7 @@ include("head.inc"); $itemsplit = explode("|", $item); $priority_arr[$itemsplit[1]][] = $itemsplit[0]; } - - // echo print_r($priority_arr, true); + ksort($priority_arr); $p = 1; foreach($priority_arr as $number => $tier) { /* for each priority process the gateways */