sorted search

master
const an teen 2021-05-24 14:56:31 +03:00
parent bf9eb67a06
commit 8c68713f0c
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ std::string search(std::string text)
}
if (matches.size() > 0)
{
std::reverse(matches.begin(), matches.end());
std::sort(matches.begin(), matches.end());
values += "(" + std::to_string(success) + ") ";
for (int i = matches.size()-1, count = 0; i >= 0 && count < maxSize ; --i, ++count)