diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-10-03 17:23:26 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-10-03 17:23:26 +0300 |
commit | 77979b4c953aeff261a8d8bdd5b8a44297012de8 (patch) | |
tree | f00989d2c9aa74b5a47429043df6339cfc3d7709 /launcher/modplatform/modrinth/ModrinthPackIndex.cpp | |
parent | eab1180f68a4c994ad09c57ddf78ecd62610caa1 (diff) | |
download | PrismLauncher-77979b4c953aeff261a8d8bdd5b8a44297012de8.tar.gz PrismLauncher-77979b4c953aeff261a8d8bdd5b8a44297012de8.tar.bz2 PrismLauncher-77979b4c953aeff261a8d8bdd5b8a44297012de8.zip |
revert back the release order
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackIndex.cpp')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackIndex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp index f1e77d46..5c8aed1a 100644 --- a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp +++ b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp @@ -109,9 +109,8 @@ void Modrinth::loadIndexedPackVersions(ModPlatform::IndexedPack& pack, QJsonArra unsortedVersions.append(file); } auto orderSortPredicate = [](const ModPlatform::IndexedVersion& a, const ModPlatform::IndexedVersion& b) -> bool { - bool a_better_release = a.version_type <= b.version_type; // dates are in RFC 3339 format - return a.date > b.date && a_better_release; + return a.date > b.date; }; std::sort(unsortedVersions.begin(), unsortedVersions.end(), orderSortPredicate); pack.versions = unsortedVersions; |