diff --git a/launcher/modplatform/ResourceAPI.cpp b/launcher/modplatform/ResourceAPI.cpp index cda90b677..22c6a48bb 100644 --- a/launcher/modplatform/ResourceAPI.cpp +++ b/launcher/modplatform/ResourceAPI.cpp @@ -2,6 +2,7 @@ #include "Application.h" #include "Json.h" +#include "Version.h" #include "net/NetJob.h" #include "modplatform/ModIndex.h" @@ -116,8 +117,7 @@ Task::Ptr ResourceAPI::getProjectVersions(VersionSearchArgs&& args, Callback bool { - // dates are in RFC 3339 format - return a.date > b.date; + return Version(a.version) > Version(b.version); }; std::sort(unsortedVersions.begin(), unsortedVersions.end(), orderSortPredicate); } catch (const JSONValidationError& e) {