fix: sort chapters correctly

This commit is contained in:
ThaUnknown 2023-04-05 15:10:15 +02:00
parent 4106a13b94
commit e5e69f39d0
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -112,7 +112,7 @@ function constructChapters (results, duration) {
}
}
chapters.sort((a, b) => a - b)
chapters.sort((a, b) => a.start - b.start)
return chapters
}