We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50e6cc commit 06eb618Copy full SHA for 06eb618
src/pages/community-partners.astro
@@ -4,12 +4,12 @@ import Layout from "@layouts/SectionLayout.astro";
4
import SponsorCard from "@components/SponsorCard.astro";
5
import Headline from "@ui/Headline.astro";
6
7
-const sponsors = await getCollection("sponsors", ({ data }) => {
+const sponsors = (await getCollection("sponsors", ({ data }) => {
8
const isProd = import.meta.env.MODE === "production";
9
const notDraft = !isProd || data.draft !== true;
10
const isPartner = data.tier === "Partners";
11
return notDraft && isPartner;
12
-});
+})).sort((a, b) => a.id.localeCompare(b.id));
13
14
---
15
0 commit comments