From 87f6ba01158a30802b33500376253dd5f0c1bc07 Mon Sep 17 00:00:00 2001 From: Julian Jark Date: Sun, 13 Aug 2023 18:19:34 +0200 Subject: [PATCH] sort tags for deterministic order --- .../app/routes/i-dag-l\303\246rte-jeg._index.tsx" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/apps/nye-julianjark.no/app/routes/i-dag-l\303\246rte-jeg._index.tsx" "b/apps/nye-julianjark.no/app/routes/i-dag-l\303\246rte-jeg._index.tsx" index d7cc331..762dacf 100644 --- "a/apps/nye-julianjark.no/app/routes/i-dag-l\303\246rte-jeg._index.tsx" +++ "b/apps/nye-julianjark.no/app/routes/i-dag-l\303\246rte-jeg._index.tsx" @@ -41,7 +41,7 @@ export const loader = async ({ request }: LoaderArgs) => { const tags = uniqueBy( entries.flatMap((entry) => entry.tags), (tag) => tag.id, - ); + ).sort((a, b) => a.title.localeCompare(b.title)); return json( {