From: Michael Tremer Date: Tue, 10 Sep 2024 09:22:59 +0000 (+0200) Subject: ids.cgi: Sort whitelist entries X-Git-Tag: v2.29-core189~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2f7d18e338975fa5d6a6f89b3eb86378e124612;p=ipfire-2.x.git ids.cgi: Sort whitelist entries Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 08db95595a..b18f239e66 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -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];