diff --git a/app/services/discord.ts b/app/services/discord.ts index 8c8eda5..d9d6091 100644 --- a/app/services/discord.ts +++ b/app/services/discord.ts @@ -208,7 +208,7 @@ export async function sendDraftOrderNotification({ ? `Draft Order Manually Set — ${leagueName}` : `Draft Order Randomized — ${leagueName}`; - const sorted = [...teams].sort((a, b) => a.position - b.position); + const sorted = teams.toSorted((a, b) => a.position - b.position); let description = sorted .map((t) => { const teamLabel = escapeMarkdown(t.name); diff --git a/oxlint.json b/oxlint.json new file mode 100644 index 0000000..91c983e --- /dev/null +++ b/oxlint.json @@ -0,0 +1,5 @@ +{ + "rules": { + "unicorn/no-array-sort": "error" + } +}