Skip to content

Commit b84ddb4

Browse files
committed
Sort output of export.py script
1 parent 588d8f9 commit b84ddb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util/export.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def main():
7171

7272
outfile = sys.argv[1] if len(sys.argv) > 1 else "util/gh-pages/lints.json"
7373
with open(outfile, "w") as fp:
74-
json.dump(list(lints.values()), fp, indent=2)
74+
lints = list(lints.values())
75+
lints.sort(key=lambda x: x['id'])
76+
json.dump(lints, fp, indent=2)
7577
log.info("wrote JSON for great justice")
7678

7779

0 commit comments

Comments
 (0)