From cc3e51011207567c9c80e5a9e43fe692713d950d Mon Sep 17 00:00:00 2001 From: Prospector Date: Sat, 23 Jan 2021 11:51:20 -0800 Subject: [PATCH] Make sorting ignore case (Fixes #182) - Fixed sorting being case-sensitive --- .../java/io/github/prospector/modmenu/config/ModMenuConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/prospector/modmenu/config/ModMenuConfig.java b/src/main/java/io/github/prospector/modmenu/config/ModMenuConfig.java index 16ea44128..de8506d22 100644 --- a/src/main/java/io/github/prospector/modmenu/config/ModMenuConfig.java +++ b/src/main/java/io/github/prospector/modmenu/config/ModMenuConfig.java @@ -35,7 +35,7 @@ public Sorting getSorting() { public enum Sorting { @SerializedName("ascending") - ASCENDING(Comparator.comparing(modContainer -> HardcodedUtil.formatFabricModuleName(modContainer.getMetadata().getName()).asString()), "modmenu.sorting.ascending"), + ASCENDING(Comparator.comparing(modContainer -> HardcodedUtil.formatFabricModuleName(modContainer.getMetadata().getName()).asString().toLowerCase()), "modmenu.sorting.ascending"), @SerializedName("descending") DESCENDING(ASCENDING.getComparator().reversed(), "modmenu.sorting.decending");