sort charsets in the menu

This commit is contained in:
royqh1979@gmail.com 2021-09-28 22:56:26 +08:00
parent 2d393cb509
commit 3f310d81af
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -54,6 +54,9 @@ QList<PCharsetInfo> CharsetInfoManager::findCharsetsByLanguageName(const QString
&& info->enabled) && info->enabled)
result.append(info); result.append(info);
} }
std::sort(result.begin(),result.end(),[](const PCharsetInfo& info1,const PCharsetInfo& info2){
return (info1->name < info2->name);
});
return result; return result;
} }