perf/aggregate: sort JSON fields in output

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>
This commit is contained in:
Christian Couder 2018-02-01 11:14:34 +01:00 committed by Junio C Hamano
parent fb2c362eb5
commit ed103edfea

View file

@ -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: $!";