Fix ranking order mistake

This commit is contained in:
Ricardo Montañana Gómez 2023-09-23 01:33:23 +02:00
parent cd0bc02a74
commit 3a7bf4e672
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -227,7 +227,7 @@ namespace platform {
}
// sort the ranksOrder vector by value
sort(ranksOrder.begin(), ranksOrder.end(), [](const pair<string, double>& a, const pair<string, double>& b) {
return a.second < b.second;
return a.second > b.second;
});
// Assign the ranks
for (int i = 0; i < ranksOrder.size(); i++) {