]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Sortorder clientstatus and control - Type, Name
authorAlexander Marx <alexander.marx@ipfire.org>
Mon, 16 Jun 2014 09:48:18 +0000 (11:48 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Mon, 16 Jun 2014 09:48:18 +0000 (11:48 +0200)
html/cgi-bin/ovpnmain.cgi

index 45c2f6c6723db0a77e62e821918640bb77078bb9..ab6a4fe2bc5cbf5e12b7ae67e9cce9228a4d2490 100644 (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>";