From 62f435628d1788f620f71db767b0ee2ed3410cb1 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 23 Oct 2012 17:15:20 -0400 Subject: [PATCH] Repository sorting should be case-insensitive --- src/com/gitblit/utils/StringUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/gitblit/utils/StringUtils.java b/src/com/gitblit/utils/StringUtils.java index 02cc49fd..325b529f 100644 --- a/src/com/gitblit/utils/StringUtils.java +++ b/src/com/gitblit/utils/StringUtils.java @@ -427,6 +427,8 @@ public class StringUtils { public static int compareRepositoryNames(String r1, String r2) { // sort root repositories first, alphabetically // then sort grouped repositories, alphabetically + r1 = r1.toLowerCase(); + r2 = r2.toLowerCase(); int s1 = r1.indexOf('/'); int s2 = r2.indexOf('/'); if (s1 == -1 && s2 == -1) { -- 2.39.5