forked from github/wulkanowy-mirror
Sort lessons by number (#174)
This commit is contained in:
parent
0a7f09077f
commit
ab71dd3fde
@ -67,6 +67,7 @@ class AttendancePresenter @Inject constructor(
|
||||
else list.filter { !it.presence }
|
||||
}
|
||||
.map { items -> items.map { AttendanceItem(it) } }
|
||||
.map { items -> items.sortedBy { it.attendance.number } }
|
||||
.subscribeOn(schedulers.backgroundThread)
|
||||
.observeOn(schedulers.mainThread)
|
||||
.doFinally {
|
||||
|
@ -61,6 +61,7 @@ class TimetablePresenter @Inject constructor(
|
||||
.map { it.single { semester -> semester.current } }
|
||||
.flatMap { timetableRepository.getTimetable(it, currentDate, currentDate, forceRefresh) }
|
||||
.map { items -> items.map { TimetableItem(it, view?.roomString.orEmpty()) } }
|
||||
.map { items -> items.sortedBy { it.lesson.number } }
|
||||
.subscribeOn(schedulers.backgroundThread)
|
||||
.observeOn(schedulers.mainThread)
|
||||
.doFinally {
|
||||
|
Loading…
Reference in New Issue
Block a user