Skip to content

Commit 9a7980f

Browse files
feat: Sort projects into alphabetical order.
1 parent 2b70132 commit 9a7980f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/events/mod-garden/nature.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { getEventProjects } from "../../../ts/ModGardenAPI";
1010
1111
1212
const projects: Project[] = await getEventProjects("mod-garden-nature");
13+
projects.sort((a, b) => {
14+
return a.slug.localeCompare(b.slug)
15+
});
1316
1417
const planningStart = Moment("2025-05-18T00:00:00Z");
1518
const planningEnd = Moment("2025-05-25T00:00:00Z");

0 commit comments

Comments
 (0)