diff --git a/RedPandaIDE/RedPandaIDE_zh_CN.qm b/RedPandaIDE/RedPandaIDE_zh_CN.qm index 0cc1490e..e15200cf 100644 Binary files a/RedPandaIDE/RedPandaIDE_zh_CN.qm and b/RedPandaIDE/RedPandaIDE_zh_CN.qm differ diff --git a/RedPandaIDE/platform.cpp b/RedPandaIDE/platform.cpp index 4dbe194e..5c91374c 100644 --- a/RedPandaIDE/platform.cpp +++ b/RedPandaIDE/platform.cpp @@ -54,6 +54,9 @@ QList CharsetInfoManager::findCharsetsByLanguageName(const QString && info->enabled) result.append(info); } + std::sort(result.begin(),result.end(),[](const PCharsetInfo& info1,const PCharsetInfo& info2){ + return (info1->name < info2->name); + }); return result; }