From 5cef4df3835414174f46062808c4bff279546f6c Mon Sep 17 00:00:00 2001 From: Clemens Klug Date: Mon, 23 Jul 2018 15:39:55 +0200 Subject: [PATCH] sort keys in json output --- docker-compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.py b/docker-compose.py index 629e229..c98e2e0 100644 --- a/docker-compose.py +++ b/docker-compose.py @@ -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)) \ No newline at end of file