We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b13a9 commit c5607a0Copy full SHA for c5607a0
.github/workflows/jsondiff.py
@@ -32,7 +32,7 @@ def diff_files():
32
doc2 = json.load(args.FILE2)
33
patch = jsonpatch.make_patch(doc1, doc2)
34
if patch.patch:
35
- print(json.dumps(patch.patch, indent=args.indent))
+ print(json.dumps(patch.patch.sort(key=lambda op: op["path"]), indent=args.indent))
36
sys.exit(1)
37
38
if __name__ == "__main__":
0 commit comments