[Bug #1213] Use String.CASE_INSENSITIVE_ORDER comparator instead of
String.compareTo() function to compare resource names. FEA: ItEr75S04BugFixing
This commit is contained in:
parent
1d0734a1ab
commit
06c579e4df
1 changed files with 1 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue