From 5b647f1446b921c5ccecf7417868e618f7270605 Mon Sep 17 00:00:00 2001
From: TheJoeCoder <joe@radialbog9.uk>
Date: Sun, 7 Jul 2024 12:28:00 +0100
Subject: [PATCH] Sort the projects properly

---
 build_site.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build_site.py b/build_site.py
index d955640..ef592e8 100644
--- a/build_site.py
+++ b/build_site.py
@@ -20,7 +20,9 @@ shutil.copytree("static", "public/", dirs_exist_ok=True)
 
 # Load projects
 projects = []
-for filename in os.listdir("templates/projects"):
+files = os.listdir("templates/projects")
+files.sort()
+for filename in files:
     filepath = os.path.join("templates", "projects", filename)
     if os.path.isfile(filepath) and filepath.endswith(".json"):
         # Load file
-- 
GitLab