]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: BUGFIX-CustomGroup sort order
authorAlexander Marx <amarx@ipfire.org>
Thu, 31 Jan 2013 19:52:56 +0000 (20:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:08:17 +0000 (14:08 +0200)
html/cgi-bin/fwhosts.cgi

index 97024353021fc253c9a8012ece4677c6f11eba61..02630526a712620778029ae2a0b3d7f8bcc27d12 100755 (executable)
@@ -1442,7 +1442,7 @@ sub viewtablegrp
        { 
                print "<center><b>$Lang::tr{'fwhost empty'}</b>"; 
        }else{
-               foreach my $key (sort {$a <=> $b} keys %customgrp){
+               foreach my $key (sort { uc($customgrp{$a}[0]) cmp uc($customgrp{$b}[0]) } sort { uc($customgrp{$a}[2]) cmp uc($customgrp{$b}[2]) } keys %customgrp){
                        
                        $count++;
                        if ($helper ne $customgrp{$key}[0]){