Ensure chapters are sorted when getting continue point (#2011)

Fixes new behaviour in #1625
This commit is contained in:
pssandhu 2023-05-25 13:01:39 +01:00 committed by GitHub
parent 64f7491781
commit 17c66d0fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -501,7 +501,8 @@ public class ReaderService : IReaderService
if (currentlyReadingChapter != null) return currentlyReadingChapter;
// Order with volume 0 last so we prefer the natural order
return FindNextReadingChapter(volumes.OrderBy(v => v.Number, SortComparerZeroLast.Default).SelectMany(v => v.Chapters).ToList());
return FindNextReadingChapter(volumes.OrderBy(v => v.Number, SortComparerZeroLast.Default)
.SelectMany(v => v.Chapters.OrderBy(c => double.Parse(c.Number))).ToList());
}
private static ChapterDto FindNextReadingChapter(IList<ChapterDto> volumeChapters)

View File

@ -7,7 +7,7 @@
"name": "GPL-3.0",
"url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE"
},
"version": "0.7.2.16"
"version": "0.7.2.18"
},
"servers": [
{