ovpnmain.cgi: Sortorder clientstatus and control - Type, Name

This commit is contained in:
Alexander Marx
2014-06-16 11:48:18 +02:00
parent 29f238b239
commit ceb78c46f3

View File

@@ -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 "<tr>";