Skip to content

Commit

Permalink
patch writer: Sort the json file by key
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Oct 4, 2023
1 parent 3336772 commit 8e6c6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/convert/writer/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,5 @@ def close(self) -> None:
return
fname = os.path.join(self.output_folder, "matrices.json")
with open(fname, "w", encoding="utf-8") as ofile:
json.dump(self._matrices, ofile, indent=2)
json.dump(self._matrices, ofile, indent=2, sort_keys=True)
logger.info("Patch matrices written to: '%s'", fname)

0 comments on commit 8e6c6c3

Please sign in to comment.