From 58a7fd8405789f0ffe102c9b471a60be131574e5 Mon Sep 17 00:00:00 2001
From: David Ball
Date: Tue, 16 Jul 2024 14:08:15 -0400
Subject: [PATCH] Alphabetized categories on home page (again).
---
src/pages/index.astro | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 91f5f2f..18ae194 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -14,7 +14,7 @@ import { getProductsForCategoryId } from '../data/products';
Your one-stop shop for all your after-market Dasher supplies.
- {ALL_CATEGORIES.children.filter(categoryNode => getProductsForCategoryId(categoryNode.value.id).length > 0).map(categoryNode => (
+ {ALL_CATEGORIES.children.filter(categoryNode => getProductsForCategoryId(categoryNode.value.id).length > 0).sort((left, right) => left.value.category.localeCompare(right.value.category)).map(categoryNode => (