[Bug #1213] Use String.CASE_INSENSITIVE_ORDER comparator instead of

String.compareTo() function to compare resource names.

FEA: ItEr75S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2011-10-13 17:53:56 +02:00
parent 1d0734a1ab
commit 06c579e4df

View file

@ -108,13 +108,7 @@ public abstract class Resource extends IntegrationEntity implements
@Override
public int compare(Resource o1, Resource o2) {
if (o1.getName() == null) {
return 1;
}
if (o2.getName() == null) {
return -1;
}
return o1.getName().compareTo(o2.getName());
return String.CASE_INSENSITIVE_ORDER.compare(o1.getName(), o2.getName());
}
});
return resources;