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:
parent
5b392639b5
commit
0782ee7689
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user