From 7ec4dbe8c0a1a979ea87afcd445d0e262a51bd50 Mon Sep 17 00:00:00 2001 From: Fabrice Lamant Date: Tue, 30 Jul 2024 23:35:09 +0200 Subject: [PATCH] fix sports order --- src/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calendar.ts b/src/calendar.ts index c162f3c3a..948544ec7 100644 --- a/src/calendar.ts +++ b/src/calendar.ts @@ -341,7 +341,7 @@ export class Calendar { calendars.push(` `); calendars.push(``); - for (const sport of this.sports.sort()) { + for (const sport of this.sports.sort((a: Sport, b: Sport) => a.name > b.name ? 1 : -1)) { calendars.push(`
`); calendars.push(` `); calendars.push(`
${getSportIcon(sport.key)} ${sport.name}
`);