sort shit

This commit is contained in:
Peder Bergebakken Sundt 2019-09-19 01:28:13 +02:00
parent c16742291c
commit 4c47f2111e

View File

@ -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<h1>{filename}</h1>\n")
with open(filename) as f2: data = f2.read()
try: