We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9ad66 commit 696d168Copy full SHA for 696d168
app/src/main/java/com/example/githubfirebaseissue/ui/viewmodel/MainViewModel.kt
@@ -37,6 +37,7 @@ class MainViewModel @Inject constructor(private val useCase: GetFireBaseIssueUse
37
.doOnSubscribe { loadingState.value = true }
38
.doOnEvent { _, _ -> loadingState.value = false }
39
.doOnError { loadingState.value = false }
40
+ .map { it.sortedByDescending { issue -> issue.updatedAt } }
41
.subscribe(
42
{ Event(it).run(_issueLiveData::postValue) }
43
,
0 commit comments