warning fix in LocalSource

This commit is contained in:
Jays2Kings 2021-09-19 14:00:34 -04:00
parent 6f8ebb1d0d
commit 63d5e6e710

View file

@ -240,12 +240,10 @@ class LocalSource(private val context: Context) : CatalogueSource {
ChapterRecognition.parseChapterNumber(this, manga)
}
}
.sortedWith(
Comparator { c1, c2 ->
.sortedWith { c1, c2 ->
val c = c2.chapter_number.compareTo(c1.chapter_number)
if (c == 0) c2.name.compareToCaseInsensitiveNaturalOrder(c1.name) else c
}
)
.toList()
return Observable.just(chapters)