From 7b3d215a0a01c3010f61e32fbe4af43b7f2f7e88 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Wed, 31 Jan 2024 05:46:16 +0100 Subject: [PATCH] Sort by descending rating and not rank in groups edition popup --- .../src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt index 3c74039..d97152e 100644 --- a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt +++ b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt @@ -63,7 +63,7 @@ class PairgothTool { pairables.groupBy { pairable -> pairable.getDouble("MMS")?.toLong() } .mapValues { entry -> entry.value.sortedByDescending { pairable -> - pairable.getInt("rank") + pairable.getInt("rating") } }