1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Strict weak ordering on the data

This commit is contained in:
nordsoft 2023-05-28 00:12:03 +04:00
parent 5b392639b5
commit 0782ee7689

View File

@ -200,8 +200,9 @@ QString CModListView::genChangelogText(CModEntry & mod)
std::sort(versions.begin(), versions.end(), [](QString lesser, QString greater)
{
return !CModEntry::compareVersions(lesser, greater);
return CModEntry::compareVersions(lesser, greater);
});
std::reverse(versions.begin(), versions.end());
for(auto & version : versions)
{