From e4ec1ad17249fc28551196cf1da17285f859bf0e Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 14 Jul 2022 09:28:28 +0200 Subject: [PATCH] Ignore case when sorting by username Fixes #748 --- .../hangar/controller/extras/pagination/SorterRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/papermc/hangar/controller/extras/pagination/SorterRegistry.java b/src/main/java/io/papermc/hangar/controller/extras/pagination/SorterRegistry.java index a51285147..8d27a9769 100644 --- a/src/main/java/io/papermc/hangar/controller/extras/pagination/SorterRegistry.java +++ b/src/main/java/io/papermc/hangar/controller/extras/pagination/SorterRegistry.java @@ -8,7 +8,7 @@ import java.util.Map; public enum SorterRegistry implements Sorter { USER_JOIN_DATE("joinDate", simpleSorter("u.join_date")), - USER_NAME("username", simpleSorter("username")), + USER_NAME("username", simpleSorter("lower(username)")), USER_PROJECT_COUNT("projectCount", simpleSorter("project_count")), // For Projects