From 876eb5faa0711c8af9552e0ad99dd8d84a3a48f4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 17 Feb 2024 16:35:36 -0800 Subject: fix(lives): presort by time --- src/lib/Hololive/Lives.svelte | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/Hololive') diff --git a/src/lib/Hololive/Lives.svelte b/src/lib/Hololive/Lives.svelte index 9c5b6b04..c7ecfdf8 100644 --- a/src/lib/Hololive/Lives.svelte +++ b/src/lib/Hololive/Lives.svelte @@ -35,6 +35,7 @@ return false; } }) + .sort((a, b) => new Date(a.time).getTime() - new Date(b.time).getTime()) .sort((a, b) => { const now = Date.now(); const aTime = new Date(a.time).getTime(); -- cgit v1.2.3