Sort hosts in aptcheck
[git-tools-moved-to-github.git] / aptcheck / aptcheck.pl
index cac9422..d49e41b 100755 (executable)
@@ -149,7 +149,8 @@ if ( -f $datefilename ) {
 
 my $table = "<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/ );