From 4f9f8fc4696e5e17b3688d509c237138fb1bff99 Mon Sep 17 00:00:00 2001 From: Gerard Paligot Date: Wed, 8 Nov 2023 13:43:16 +0100 Subject: [PATCH] fix(openfeedback): ordering comments by date creation. --- .../io/openfeedback/android/sources/OpenFeedbackFirestore.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/openfeedback/src/main/java/io/openfeedback/android/sources/OpenFeedbackFirestore.kt b/openfeedback/src/main/java/io/openfeedback/android/sources/OpenFeedbackFirestore.kt index 14915a5..881d9f5 100644 --- a/openfeedback/src/main/java/io/openfeedback/android/sources/OpenFeedbackFirestore.kt +++ b/openfeedback/src/main/java/io/openfeedback/android/sources/OpenFeedbackFirestore.kt @@ -64,6 +64,7 @@ class OpenFeedbackFirestore( } } ?.flatten() + ?.sortedBy { it.second.createdAt } ?.associate { it.first to it.second } ?: emptyMap() )