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) {