From 6a94866368db1a53ddc95644bd75a0e50479adc8 Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 8 Dec 2023 13:24:32 +0000 Subject: [PATCH] sort --- frontend/src/lib/components/widgets/persons.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/components/widgets/persons.svelte b/frontend/src/lib/components/widgets/persons.svelte index e7ae03a..712139d 100644 --- a/frontend/src/lib/components/widgets/persons.svelte +++ b/frontend/src/lib/components/widgets/persons.svelte @@ -5,6 +5,7 @@ export let pageId: string export let persons: Page[] + persons = persons.sort((a, b) => a.sort - b.sort) let hover = -1