aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-29 02:35:25 +0100
committerGravatar Joe Banks <[email protected]>2024-04-29 02:35:25 +0100
commit7b41199c1ea6a409323affae443ff31c1205bcd6 (patch)
tree35efdc739caa54d884a760b98a28a9cd557c3c50
parentRevert "Add tabindex to tags for keyboard navigation" (diff)
Actually sort services alphabetically
-rw-r--r--src/pages/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 71b9312..eb65fc6 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -59,7 +59,7 @@ const IndexPage: React.FC<IndexPageProps> = ({ data }) => {
<ServicesHolder>
{data.services.nodes.sort().filter(
service => selectedTag ? service.tags.includes(selectedTag) : true
- ).sort()
+ ).sort((a, b) => a.name.localeCompare(b.name))
.map((service, index) => (
<Service key={index} {...service} />
))}