diff --git a/applets/kicker/plugin/runnermodel.cpp b/applets/kicker/plugin/runnermodel.cpp --- a/applets/kicker/plugin/runnermodel.cpp +++ b/applets/kicker/plugin/runnermodel.cpp @@ -225,6 +225,12 @@ it.value().append(match); } + // Sort matches for all runners in descending order. This allows the best + // match to win whilest preserving order between runners. + for (auto &list : matchesForRunner) { + qSort(list.begin(), list.end(), qGreater()); + } + if (m_mergeResults) { RunnerMatchesModel *matchesModel = nullptr;