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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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];