fix: use <= when compareing release types

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2023-05-26 17:16:50 -07:00
parent 832a61f886
commit 2680dba0aa
5 changed files with 13 additions and 4 deletions

View File

@ -94,7 +94,7 @@ void FlameMod::loadIndexedPackVersions(ModPlatform::IndexedPack& pack,
}
auto orderSortPredicate = [](const ModPlatform::IndexedVersion& a, const ModPlatform::IndexedVersion& b) -> bool {
bool a_better_release = a.verison_type < b.verison_type;
bool a_better_release = a.verison_type <= b.verison_type;
// dates are in RFC 3339 format
return a.date > b.date && a_better_release;
};