From: James Moger Date: Tue, 23 Oct 2012 21:15:20 +0000 (-0400) Subject: Repository sorting should be case-insensitive X-Git-Tag: v1.2.0~137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62f435628d1788f620f71db767b0ee2ed3410cb1;p=gitblit.git Repository sorting should be case-insensitive --- 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) {