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
@@ -74,7 +74,7 @@ for metadata_type_tuple in args.type:
component_general['metadataTypes'] = metadata_types
with open(filename, 'w') as outfile:
json.dump(component_general, outfile)
json.dump(component_general, outfile, sort_keys=True)
if compress:
save_compressed(filename)