ids.cgi: Fix sorting the ignored hosts by id

Message ID 20260311193950.6283-1-stefan.schantl@ipfire.org
State New
Headers
Series ids.cgi: Fix sorting the ignored hosts by id |

Commit Message

Stefan Schantl 11 Mar 2026, 7:39 p.m. UTC
The sorting statement was entirely wrong, so the lists of ignored
hosts never got sorted in a proper way.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 html/cgi-bin/ids.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi
index 192c71ec6..849c37528 100644
--- a/html/cgi-bin/ids.cgi
+++ b/html/cgi-bin/ids.cgi
@@ -1506,7 +1506,7 @@  END
 			my $col = "";
 
 			# Loop through all entries of the hash.
-			foreach my $key (sort { $ignored{$a}[0] <=> $ignored{$b}[0] } keys %ignored)  {
+			foreach my $key (sort { $a <=> $b } keys %ignored)  {
 				# Assign data array positions to some nice variable names.
 				my $address = $ignored{$key}[0];
 				my $remark = $ignored{$key}[1];