fix log and sh/dx ordering issues.
[spider.git] / perl / DXLogPrint.pm
index 9564ae690b87d84817f32c1cea06e74cab5a826f..0d99eb41804a740a9d0e95a18c13cabdf2a93b36 100644 (file)
@@ -18,8 +18,13 @@ use DXLog;
 use Julian;
 
 
-our $readback = `which tac`;
+our $readback = 1;
+if ($readback) {
+       $readback = `which tac`;
+} 
 chomp $readback;
+#undef $readback;                              # yet another reason not to use the cloud!
 
 use strict;
 
@@ -107,7 +112,7 @@ sub print
                return "show/$name: ${s}not found";
        } 
 
-       for (reverse @in) {
+       for (sort {$a <=> $b } @in) {
                my @line = split /\^/ ;
                push @out, print_item(\@line);