mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Additionally sort by chapter number in recent updates (fixes #2586)
This commit is contained in:
parent
9cdd4bee97
commit
eb724336f5
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ class RecentChaptersPresenter(
|
||||||
.groupByTo(map, { getMapKey(it.chapter.date_fetch) })
|
.groupByTo(map, { getMapKey(it.chapter.date_fetch) })
|
||||||
byDay.flatMap {
|
byDay.flatMap {
|
||||||
val dateItem = DateItem(it.key)
|
val dateItem = DateItem(it.key)
|
||||||
it.value.map { RecentChapterItem(it.chapter, it.manga, dateItem) }
|
it.value
|
||||||
|
.sortedByDescending { it.chapter.chapter_number }
|
||||||
|
.map { RecentChapterItem(it.chapter, it.manga, dateItem) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.doOnNext {
|
.doOnNext {
|
||||||
|
|
Loading…
Reference in a new issue