mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 17:43:18 +02:00
Refactoring
This commit is contained in:
@@ -837,11 +837,8 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
if (c != 0)
|
||||
return c;
|
||||
|
||||
if (context == null)
|
||||
return collator.compare(f1.name, f2.name);
|
||||
|
||||
String name1 = f1.getDisplayName(context);
|
||||
String name2 = f2.getDisplayName(context);
|
||||
String name1 = (context == null ? f1.name : f1.getDisplayName(context));
|
||||
String name2 = (context == null ? f2.name : f2.getDisplayName(context));
|
||||
return Normalizer.normalize(name1, Normalizer.Form.NFD).compareToIgnoreCase(
|
||||
Normalizer.normalize(name2, Normalizer.Form.NFD));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user