Fix sorting logic for chapters

This commit is contained in:
Moustapha Kodjo Amadou 2026-04-13 10:40:05 +01:00
parent e33af9cbe6
commit feb0a3635f

View file

@ -540,7 +540,7 @@ extension MangaExtensions on Manga {
})
.where((element) => !filterScanlator.contains(element.scanlator))
.toList();
List<Chapter> chapters = sortChapter == 1
List<Chapter> chapters = sortChapter == 0
? chapterList.reversed.toList()
: chapterList;
if (sortChapter == 0) {