From: Chris Koeritz Date: Sun, 18 Sep 2016 02:39:30 +0000 (-0400) Subject: updated to sort the output file of counts, so that it stays in basically the same... X-Git-Tag: 2.140.90~441 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=a4cb38b54aae2f95d8e27343d22891ab9efa7253;p=feisty_meow.git updated to sort the output file of counts, so that it stays in basically the same order. this is done by the keys, which i think are the urls. --- diff --git a/scripts/cgi/count.cgi b/scripts/cgi/count.cgi index 0e00e467..c3f7b0d4 100755 --- a/scripts/cgi/count.cgi +++ b/scripts/cgi/count.cgi @@ -70,7 +70,7 @@ $counts{$server.$doc}++; # seek(COUNTS, 0, 0); -foreach $file (keys %counts) { +foreach $file (sort {lc $a cmp lc $b} keys %counts) { print COUNTS $counts{$file}, ":", $file, "\n"; }