Use Collator for sorting Personas, GitHub issue #140

dbus-notify
Zlatin Balevsky 2022-05-27 21:36:30 +01:00
parent a29868ab4d
commit d3dcbba34c
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 1 deletions

View File

@ -2,9 +2,11 @@ package com.muwire.gui
import com.muwire.core.Persona
import java.text.Collator
class PersonaComparator implements Comparator<Persona>{
@Override
int compare(Persona a, Persona b) {
return String.compare(a.getHumanReadableName(), b.getHumanReadableName())
return Collator.getInstance().compare(a.getHumanReadableName(), b.getHumanReadableName())
}
}