Merge pull request #1164 from Scrumplex/fix-sort-languages

This commit is contained in:
Sefa Eyeoglu 2022-09-25 19:50:55 +02:00 committed by GitHub
commit 58a5331f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,10 @@ struct Language
else {
result = locale.nativeLanguageName();
}
if (result.isEmpty()) {
result = key;
}
return result;
}
@ -394,7 +398,7 @@ void TranslationsModel::reloadLocalFiles()
return false;
}
}
return a.key < b.key;
return a.languageName().toLower() < b.languageName().toLower();
});
endInsertRows();
}