patch writer: Sort the json file by key

This commit is contained in:
torzdf 2023-10-04 10:47:59 +01:00
parent 3336772ff1
commit 8e6c6c3500

View File

@ -277,5 +277,5 @@ class Writer(Output):
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)