diff --git a/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt b/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt index fc17050f..da5a7fb0 100644 --- a/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt +++ b/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt @@ -79,9 +79,7 @@ class GenericAdapter : RecyclerView.Adapter>(), F val similarity = (jw.similarity(currentSearchTerm, it) + cos.similarity(currentSearchTerm, it)) / 2 if (similarity != 0.0) ScoredItem(similarity, item) else null } - }.apply { - sortedByDescending { it.score } - } + }.sortedByDescending { it.score } /** * This performs filtering on the items in [allItems] based on similarity to [term]