Adjust missing chapters UI

This commit is contained in:
arkon
2023-03-26 10:26:58 -04:00
parent ee45f46193
commit 1ff78173f7
3 changed files with 27 additions and 45 deletions

View File

@ -14,7 +14,7 @@ fun countMissingChapters(chaptersInput: List<Float>): Int? {
.map { floor(it.toDouble()).toInt() }
// Only keep unique chapters so that -1 or 16 are not counted multiple times
.distinct()
.sortedBy { it }
.sorted()
if (chapters.isEmpty()) {
return null