openvpn: Sort connections by name.

This commit is contained in:
Erik Kapfer
2012-06-20 19:54:09 +02:00
committed by Michael Tremer
parent 953073459e
commit 542b31d622
2 changed files with 2 additions and 2 deletions

View 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) {

View File

@@ -3873,7 +3873,7 @@ 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) {