From ceb78c46f3795e699af21fdd84289e78d7dda9a1 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 16 Jun 2014 11:48:18 +0200 Subject: [PATCH] ovpnmain.cgi: Sortorder clientstatus and control - Type, Name --- html/cgi-bin/ovpnmain.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 45c2f6c672..ab6a4fe2bc 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5052,7 +5052,7 @@ END my $id = 0; my $gif; my $col1=""; - foreach my $key (sort { ncmp ($confighash{$a}[1],$confighash{$b}[1]) } keys %confighash) { + foreach my $key (sort { ncmp ($confighash{$a}[3],$confighash{$b}[3]) } sort { ncmp ($confighash{$a}[1],$confighash{$b}[1]) } keys %confighash) { if ($confighash{$key}[0] eq 'on') { $gif = 'on.gif'; } else { $gif = 'off.gif'; } if ($id % 2) { print ""; -- 2.39.2