From 68b66ad9c0d64c8d0958b871db445b0b4c03d711 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Fri, 3 May 2013 10:54:47 +0200 Subject: [PATCH] Sort hosts in aptcheck --- aptcheck/aptcheck.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aptcheck/aptcheck.pl b/aptcheck/aptcheck.pl index cac9422..d49e41b 100755 --- a/aptcheck/aptcheck.pl +++ b/aptcheck/aptcheck.pl @@ -149,7 +149,8 @@ if ( -f $datefilename ) { my $table = "\n"; -for my $hline ( split("\n",$hostlist) ) { +#for my $hline ( split("\n",$hostlist) ) { +for my $hline ( sort( split("\n",$hostlist) ) ) { next unless ( $hline =~ /\/([a-z0-9-]+)\.cfg$/ ); my $H = $1; next if ($H =~ /^commands/ ); -- 1.7.10.4