From 6674f1e803cb5ecb2371fe0de490939b5e60ef3a Mon Sep 17 00:00:00 2001 From: Trial97 Date: Mon, 23 Mar 2026 19:54:18 +0200 Subject: [PATCH] Revert "Sort modpack entries by version, rather than publishing date" This reverts commit 9e3893fd6219d2d2c8e21951cfd813fb02054a8b. Signed-off-by: Trial97 --- launcher/modplatform/ResourceAPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/modplatform/ResourceAPI.cpp b/launcher/modplatform/ResourceAPI.cpp index 22c6a48bb..cda90b677 100644 --- a/launcher/modplatform/ResourceAPI.cpp +++ b/launcher/modplatform/ResourceAPI.cpp @@ -2,7 +2,6 @@ #include "Application.h" #include "Json.h" -#include "Version.h" #include "net/NetJob.h" #include "modplatform/ModIndex.h" @@ -117,7 +116,8 @@ Task::Ptr ResourceAPI::getProjectVersions(VersionSearchArgs&& args, Callback bool { - return Version(a.version) > Version(b.version); + // dates are in RFC 3339 format + return a.date > b.date; }; std::sort(unsortedVersions.begin(), unsortedVersions.end(), orderSortPredicate); } catch (const JSONValidationError& e) {