From 4c47f2111ef6390f23408871939b9b9bc5fbaef1 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 19 Sep 2019 01:28:13 +0200 Subject: [PATCH] sort shit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f84ed5d..5a3f292 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ with open(sys.argv[2], "w") as f: "any":any, "all":all, "cull_whitespace":(lambda x: " ".join(x.split())) }) - for filename in ([sys.argv[1]] if sys.argv[1] != "ALL" else glob.glob("cards/*.yaml")): + for filename in ([sys.argv[1]] if sys.argv[1] != "ALL" else sorted(glob.glob("cards/*.yaml"))): if sys.argv[1] == "ALL": f.write(f"\n\n

{filename}

\n") with open(filename) as f2: data = f2.read() try: