sort keys in json output

master
Clemens Klug 2018-07-23 15:39:55 +02:00
parent 17e4d2885e
commit 5cef4df383
1 changed files with 1 additions and 1 deletions

View File

@ -138,6 +138,6 @@ if __name__ == "__main__":
overview = start(args.compose_files, args.ignore)
if args.output:
with open(args.output, "w") as out:
json.dump(overview, out, indent=1)
json.dump(overview, out, indent=1, sort_keys=True)
else:
print(json.dumps(overview, indent=1))