Improve JCR utilities.
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui / src / org / argeo / eclipse / ui / jcr / utils / JcrItemsComparator.java
index 5f17f416355e482a36b6cc1c5baf1355e372fa13..015670ba58e419ab052edfa356c7cec894d98426 100644 (file)
@@ -27,7 +27,7 @@ public class JcrItemsComparator implements Comparator<Item> {
        public int compare(Item o1, Item o2) {
                try {
                        // TODO: put folder before files
-                       return o1.getName().compareTo(o2.getName());
+                       return o1.getName().toLowerCase().compareTo(o2.getName().toLowerCase());
                } catch (RepositoryException e) {
                        throw new EclipseUiException("Cannot compare " + o1 + " and " + o2, e);
                }