Skip to content

Commit 06eb618

Browse files
committed
Sort community partners
1 parent f50e6cc commit 06eb618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/community-partners.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import Layout from "@layouts/SectionLayout.astro";
44
import SponsorCard from "@components/SponsorCard.astro";
55
import Headline from "@ui/Headline.astro";
66
7-
const sponsors = await getCollection("sponsors", ({ data }) => {
7+
const sponsors = (await getCollection("sponsors", ({ data }) => {
88
const isProd = import.meta.env.MODE === "production";
99
const notDraft = !isProd || data.draft !== true;
1010
const isPartner = data.tier === "Partners";
1111
return notDraft && isPartner;
12-
});
12+
})).sort((a, b) => a.id.localeCompare(b.id));
1313
1414
---
1515

0 commit comments

Comments
 (0)