generationComparator property
sorts base locale first, then alphabetically
Implementation
static I18nDataComparator generationComparator = (I18nData a, I18nData b) {
if (!a.base && !b.base) {
return a.locale.languageTag.compareTo(b.locale.languageTag);
} else if (!a.base && b.base) {
return 1; // move non-base to the right
} else {
return -1; // move base to the left
}
};