ids.cgi: Fix sorting the ignored hosts by id
Commit Message
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(-)
@@ -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];