From a4cb38b54aae2f95d8e27343d22891ab9efa7253 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 17 Sep 2016 22:39:30 -0400 Subject: [PATCH] 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. --- scripts/cgi/count.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.34.1