fix sort order

This commit is contained in:
Maximilian Keßler 2024-02-01 22:26:24 +01:00
parent 47d59464cd
commit 62aabe17f5
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -407,7 +407,7 @@ namespace Hanabi
if (not right.second.has_value()) { if (not right.second.has_value()) {
return true; return true;
} }
return left.second.value() < right.second.value(); return left.second.value() > right.second.value();
}); });
int max_rational_digit_len = std::accumulate( int max_rational_digit_len = std::accumulate(
reasonable_actions.begin(), reasonable_actions.end(), 0, []( reasonable_actions.begin(), reasonable_actions.end(), 0, [](