From 2e97fb6a82bb311858e7392e9e7260db709c58f2 Mon Sep 17 00:00:00 2001 From: Fabian Norlin Date: Wed, 1 Oct 2025 14:00:58 +0200 Subject: [PATCH] Change sorting of recent finds: newest entries now appear at the bottom of the list --- shared/src/commonMain/kotlin/app/klottr/KlottrAppShell.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/app/klottr/KlottrAppShell.kt b/shared/src/commonMain/kotlin/app/klottr/KlottrAppShell.kt index c6c3ec1..624f0ad 100644 --- a/shared/src/commonMain/kotlin/app/klottr/KlottrAppShell.kt +++ b/shared/src/commonMain/kotlin/app/klottr/KlottrAppShell.kt @@ -285,7 +285,7 @@ fun KlottrAppShell( } else { // --- Nytt: definiera listan + overrides före UI-anropet --- val foundList = remember(foundRefresh, forceEmptyFound) { - if (forceEmptyFound) emptyList() else FoundStore.getAll() + if (forceEmptyFound) emptyList() else FoundStore.getAll().reversed() } val labelOverrides = remember { androidx.compose.runtime.mutableStateMapOf() }