Sort output of export.py script

This commit is contained in:
flip1995 2020-01-24 14:34:25 +01:00
parent e59361f723
commit 935b94d80b
No known key found for this signature in database
GPG key ID: 693086869D506637

View file

@ -71,7 +71,9 @@ def main():
outfile = sys.argv[1] if len(sys.argv) > 1 else "util/gh-pages/lints.json"
with open(outfile, "w") as fp:
json.dump(list(lints.values()), fp, indent=2)
lints = list(lints.values())
lints.sort(key=lambda x: x['id'])
json.dump(lints, fp, indent=2)
log.info("wrote JSON for great justice")