Skip to content

Commit 6e70148

Browse files
committed
Sort search results, show past sessions at the end of the list
1 parent 5ff79a4 commit 6e70148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/commonMain/kotlin/org/jetbrains/kotlinconf/screens/ScheduleViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class ScheduleViewModel(
199199
}
200200
}
201201
}
202-
}
202+
}.sortedBy { it.value.state == SessionState.Past }
203203

204204
private fun buildNonSearchItems(
205205
days: List<Day>,

0 commit comments

Comments
 (0)