From b958490580217e41928f17a0c1c2b8415cc54364 Mon Sep 17 00:00:00 2001 From: Username404 Date: Thu, 27 May 2021 21:54:34 +0200 Subject: [PATCH] Remove the alphabetical ordering because it caused issues with kotlin-reflect --- .../kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt index 924025a..de33aa2 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt @@ -33,9 +33,7 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) { } }.entries.forEach { entry -> with(entry) { - entry.value.sortedBy { - it.title - }.forEach { + entry.value.forEach { key?.buttons!!.add(it) } }