aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-03-30 01:19:08 -0700
committerFuwn <[email protected]>2024-03-30 01:19:08 -0700
commita7cad8e760289415207ff2d444342fde213a5d4e (patch)
tree8391b3fb9ba5619aa53cf8df0b847f728d725e49 /src/lib/Tools
parentfeat(locale): add schedule to hololive dropdown (diff)
downloaddue.moe-a7cad8e760289415207ff2d444342fde213a5d4e.tar.xz
due.moe-a7cad8e760289415207ff2d444342fde213a5d4e.zip
feat(sequelspy): sort by start date
Diffstat (limited to 'src/lib/Tools')
-rw-r--r--src/lib/Tools/SequelSpy.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Tools/SequelSpy.svelte b/src/lib/Tools/SequelSpy.svelte
index 480fba36..93ae7f47 100644
--- a/src/lib/Tools/SequelSpy.svelte
+++ b/src/lib/Tools/SequelSpy.svelte
@@ -65,7 +65,7 @@
<Skeleton card={false} count={5} height="0.9rem" list />
{:then currentPrequels}
<ul>
- {#each currentPrequels as prequel}
+ {#each currentPrequels.sort((a, b) => new Date(a.startDate.year, a.startDate.month - 1, a.startDate.day).getTime() - new Date(b.startDate.year, b.startDate.month - 1, b.startDate.day).getTime()) as prequel}
<li>
<a
href={`https://anilist.co/anime/${prequel.id}`}