firewall.cgi: Sort protocols alphabetically.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Apr 2014 13:23:45 +0000 (15:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Apr 2014 13:23:45 +0000 (15:23 +0200)
html/cgi-bin/firewall.cgi

index 9af97d1..021255f 100644 (file)
@@ -1284,6 +1284,10 @@ sub get_serviceports
                        }
                }
        }
+
+       # Sort protocols alphabetically.
+       @protocols = sort(@protocols);
+
        return @protocols;
 }
 sub getcolor