From 129a7841956cb376af93558f114830a8f8ca470a Mon Sep 17 00:00:00 2001 From: Janet Blackquill Date: Fri, 12 Apr 2024 02:07:21 -0400 Subject: [PATCH] prioritise ucsur-supporting fonts --- src/routes/+page.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 463576d..583cd84 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -36,6 +36,16 @@ .filter(x => !wantsExtension || x[1].extendedGlyphs) .filter(x => !wantsVariants || x[1].variantGlyphs) .filter(x => !wantsRandom || x[1].randomizedGlyphs) + .toSorted((a, b) => a[0].localeCompare(b[0])) + .toSorted((a, b) => { + if (a[1].ucsurCodepoints && b[1].ucsurCodepoints) { + return 0 + } else if (a[1].ucsurCodepoints && !b[1].ucsurCodepoints) { + return -1 + } else { + return 1 + } + })