forked from github/wulkanowy-mirror
Sort teachers by name in school and teachers tab (#2327)
This commit is contained in:
parent
5dffbdadfa
commit
9d62410530
@ -58,7 +58,10 @@ class TeacherPresenter @Inject constructor(
|
||||
.logResourceStatus("load teachers data")
|
||||
.onResourceData {
|
||||
view?.run {
|
||||
updateData(it.filter { item -> item.name.isNotBlank() })
|
||||
updateData(it
|
||||
.filter { item -> item.name.isNotBlank() }
|
||||
.sortedBy { it.name }
|
||||
)
|
||||
showContent(it.isNotEmpty())
|
||||
showEmpty(it.isEmpty())
|
||||
showErrorView(false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user