mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 17:12:04 +00:00
fix: sort chapters correctly
This commit is contained in:
parent
4106a13b94
commit
e5e69f39d0
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "3.8.2",
|
||||
"version": "3.8.3",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "src/index.js",
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ function constructChapters (results, duration) {
|
|||
}
|
||||
}
|
||||
|
||||
chapters.sort((a, b) => a - b)
|
||||
chapters.sort((a, b) => a.start - b.start)
|
||||
|
||||
return chapters
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue