From: Alexander Marx Date: Mon, 16 Jun 2014 09:48:18 +0000 (+0200) Subject: ovpnmain.cgi: Sortorder clientstatus and control - Type, Name X-Git-Tag: v2.15-core80~67^2 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=ceb78c46f3795e699af21fdd84289e78d7dda9a1 ovpnmain.cgi: Sortorder clientstatus and control - Type, Name --- 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 "";