From 1188d83d10bf5325a7bf0d646b0f3a5d07aea994 Mon Sep 17 00:00:00 2001 From: Kian Newman-Hazel Date: Fri, 11 Oct 2024 10:02:18 +0100 Subject: [PATCH] [Docs Site] Sort Glossary table by term --- src/components/Glossary.astro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Glossary.astro b/src/components/Glossary.astro index 3d4ec994db98f72..0481de01d545c69 100644 --- a/src/components/Glossary.astro +++ b/src/components/Glossary.astro @@ -11,6 +11,8 @@ const { product } = Astro.props; let terms = await getGlossaryEntries(product); +terms = terms.sort((a, b) => a.term.localeCompare(b.term)); + const INITIAL_VISIBLE_ROWS = 20; ---