Skip to content

Commit

Permalink
Make sorting ignore case (Fixes #182)
Browse files Browse the repository at this point in the history
- Fixed sorting being case-sensitive
  • Loading branch information
Prospector committed Jan 23, 2021
1 parent 8725e1e commit cc3e510
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit cc3e510

Please sign in to comment.