perf/aggregate: sort JSON fields in output
authorChristian Couder <christian.couder@gmail.com>
Thu, 1 Feb 2018 10:14:34 +0000 (11:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Feb 2018 19:47:45 +0000 (11:47 -0800)
It is much easier to diff the output against a previous
one when the fields are sorted.

Helped-by: Philip Oakley <philipoakley@iee.org>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/aggregate.perl
index a6092924914b8f356eaa50ef8d69a9a87417adf9..749d6689f95f7080a99e8849d1b3c35efe8750cc 100755 (executable)
@@ -253,7 +253,7 @@ sub print_codespeed_results {
                }
        }
 
-       print to_json(\@data, {utf8 => 1, pretty => 1}), "\n";
+       print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
 }
 
 binmode STDOUT, ":utf8" or die "PANIC on binmode: $!";