]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Sort whitelist entries
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Sep 2024 09:22:59 +0000 (11:22 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Sep 2024 08:43:23 +0000 (08:43 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ids.cgi

index 08db95595a14239a85f5f8c3ba5b66639b1deaf9..b18f239e665723612c4c38dfcf0a76a672ca3c07 100644 (file)
@@ -1253,7 +1253,7 @@ END
                        my $col = "";
 
                        # Loop through all entries of the hash.
-                       while( (my $key) = each %ignored)  {
+                       foreach my $key (sort { $ignored{$a}[0] <=> $ignored{$b}[0] } keys %ignored)  {
                                # Assign data array positions to some nice variable names.
                                my $address = $ignored{$key}[0];
                                my $remark = $ignored{$key}[1];