Skip to content

Commit

Permalink
fix alphabetical sort being case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Jun 26, 2024
1 parent 7d80fa3 commit 96d8dad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public int countEnabledFilters() {
}

public enum SortOrder {
ALPHABETICAL(ComponentBuilder.button("filter.alphabetical"), Comparator.comparing(Team::getName)),
ALPHABETICAL(ComponentBuilder.button("filter.alphabetical"), Comparator.comparing(team -> team.getName().toLowerCase(Locale.ROOT))),
CREATION_DATE(ComponentBuilder.button("filter.creation_date"), Comparator.comparing(Team::getCreatedAt)),
LAST_MODIFIED(ComponentBuilder.button("filter.last_modified"), Comparator.comparing(Team::getLastChanged)),
MEMBER_COUNT(ComponentBuilder.button("filter.member_count"), Comparator.comparing(team -> team.getPlayers().size()));
Expand Down

0 comments on commit 96d8dad

Please sign in to comment.