metadata: sort json output

ensures the files don't change arbitrarily
This commit is contained in:
Beat Küng
2022-10-05 07:44:55 +02:00
parent 06a0aedbdb
commit 02035d94aa
5 changed files with 3 additions and 6 deletions
@@ -489,7 +489,7 @@ actuators = {
with open(output_file, 'w') as outfile:
indent = 2 if verbose else None
json.dump(actuators, outfile, indent=indent)
json.dump(actuators, outfile, indent=indent, sort_keys=True)
if compress:
save_compressed(output_file)