Lexicographic sort of folder names

This commit is contained in:
M66B 2024-09-20 08:04:43 +02:00
parent 76c2b415d0
commit 5ded9561e4
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ import org.json.JSONObject;
import java.io.Serializable;
import java.text.Collator;
import java.text.Normalizer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@ -841,7 +842,8 @@ public class EntityFolder extends EntityOrder implements Serializable {
String name1 = f1.getDisplayName(context);
String name2 = f2.getDisplayName(context);
return collator.compare(name1, name2);
return Normalizer.normalize(name1, Normalizer.Form.NFD).compareTo(
Normalizer.normalize(name2, Normalizer.Form.NFD));
}
};
}