X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=util%2Fexport.py;h=5d1bd60acf3d66ff0a6eb8202e16ad052c767a6d;hb=b8b47ab6fe4e1c18db2685c406a508fe145c7de9;hp=e8fc4d84ea4f3b878fc88fdf727c7694c9a30f31;hpb=e6f16c77c1e39c60fcf17ef9d4b656c388543f29;p=rust.git diff --git a/util/export.py b/util/export.py index e8fc4d84ea4..5d1bd60acf3 100755 --- a/util/export.py +++ b/util/export.py @@ -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")