From 06eb618398183eb82a2c333114d77172e591aeba Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 12 May 2025 22:51:48 +0300 Subject: [PATCH] Sort community partners --- src/pages/community-partners.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/community-partners.astro b/src/pages/community-partners.astro index 45e3c970d..035188511 100644 --- a/src/pages/community-partners.astro +++ b/src/pages/community-partners.astro @@ -4,12 +4,12 @@ import Layout from "@layouts/SectionLayout.astro"; import SponsorCard from "@components/SponsorCard.astro"; import Headline from "@ui/Headline.astro"; -const sponsors = await getCollection("sponsors", ({ data }) => { +const sponsors = (await getCollection("sponsors", ({ data }) => { const isProd = import.meta.env.MODE === "production"; const notDraft = !isProd || data.draft !== true; const isPartner = data.tier === "Partners"; return notDraft && isPartner; -}); +})).sort((a, b) => a.id.localeCompare(b.id)); ---