]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/cgi-bin/index.cgi
openvpn: Sort connections by name.
[people/teissler/ipfire-2.x.git] / html / cgi-bin / index.cgi
index 07dc9e7fb802a9d46dce2163efdc230e30eb8da5..9f559275a13821b5e94246f924a823aacf8b947b 100644 (file)
@@ -356,7 +356,7 @@ END
 END
                my $id = 0;
                my $gif;
-               foreach my $key (keys %confighash) {
+               foreach my $key (sort { uc($confighash{$a}[1]) cmp uc($confighash{$b}[1]) } keys %confighash) {
                        if ($confighash{$key}[0] eq 'on') { $gif = 'on.gif'; } else { $gif = 'off.gif'; }
 
                        if ($id % 2) {