]> source.dussan.org Git - gitblit.git/commitdiff
Repository sorting should be case-insensitive
authorJames Moger <james.moger@gitblit.com>
Tue, 23 Oct 2012 21:15:20 +0000 (17:15 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 23 Oct 2012 21:15:20 +0000 (17:15 -0400)
src/com/gitblit/utils/StringUtils.java

index 02cc49fd835d9519dea0119938ef8ccbdb3f0a9c..325b529f41aefd6795f085c4b5171906838d6cf2 100644 (file)
@@ -427,6 +427,8 @@ public class StringUtils {
        public static int compareRepositoryNames(String r1, String r2) {\r
                // sort root repositories first, alphabetically\r
                // then sort grouped repositories, alphabetically\r
+               r1 = r1.toLowerCase();\r
+               r2 = r2.toLowerCase();\r
                int s1 = r1.indexOf('/');\r
                int s2 = r2.indexOf('/');\r
                if (s1 == -1 && s2 == -1) {\r