From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 17/20] ids.cgi: Sort whitelist entries Date: Tue, 10 Sep 2024 14:37:30 +0000 Message-ID: <20240910143748.3469271-18-michael.tremer@ipfire.org> In-Reply-To: <20240910143748.3469271-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7351270192913080312==" List-Id: --===============7351270192913080312== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- html/cgi-bin/ids.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 08db95595..b18f239e6 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1253,7 +1253,7 @@ END my $col =3D ""; =20 # Loop through all entries of the hash. - while( (my $key) =3D each %ignored) { + foreach my $key (sort { $ignored{$a}[0] <=3D> $ignored{$b}[0] } keys %ign= ored) { # Assign data array positions to some nice variable names. my $address =3D $ignored{$key}[0]; my $remark =3D $ignored{$key}[1]; --=20 2.39.2 --===============7351270192913080312==--