From 0782ee7689e89393baff6ebf6e1552bb12bdb3f2 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sun, 28 May 2023 00:12:03 +0400 Subject: [PATCH] Strict weak ordering on the data --- launcher/modManager/cmodlistview_moc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/modManager/cmodlistview_moc.cpp b/launcher/modManager/cmodlistview_moc.cpp index a1763fe2b..8f0feb684 100644 --- a/launcher/modManager/cmodlistview_moc.cpp +++ b/launcher/modManager/cmodlistview_moc.cpp @@ -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) {