Skip to content

Commit 686089a

Browse files
hugovkegeakman
andauthored
Sort community partners (#1221)
https://ep2025.europython.eu/community-partners/ says they're in alphabetical order, but they're not. For example, PyCon Italia is shown before PyCon France. This PR sorts them by ID, which is their directory name. Not exactly the same as sorting by name, but close enough? Co-authored-by: Ege Akman <me@egeakman.dev>
1 parent 6de4b89 commit 686089a

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)