mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Language comparator: use natural compare
This commit is contained in:
@@ -44,7 +44,7 @@ public final class LanguageUtil {
|
||||
public static final Comparator<Language> LANGUAGE_COMPARATOR = new Comparator<Language>() {
|
||||
@Override
|
||||
public int compare(Language o1, Language o2) {
|
||||
return o1.getDisplayName().compareToIgnoreCase(o2.getDisplayName());
|
||||
return StringUtil.naturalCompare(o1.getDisplayName(), o2.getDisplayName());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user