diff options
| author | Fuwn <[email protected]> | 2024-02-17 16:35:36 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-17 16:35:36 -0800 |
| commit | 876eb5faa0711c8af9552e0ad99dd8d84a3a48f4 (patch) | |
| tree | e826a4b44b08f707de7a6e1b39bc8e4f4e8c9ecb /src | |
| parent | refactor(hololive): move lives to component (diff) | |
| download | due.moe-876eb5faa0711c8af9552e0ad99dd8d84a3a48f4.tar.xz due.moe-876eb5faa0711c8af9552e0ad99dd8d84a3a48f4.zip | |
fix(lives): presort by time
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Hololive/Lives.svelte | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |