diff --git a/cpp/match.hpp b/cpp/match.hpp index 202227e..2ca6d1c 100644 --- a/cpp/match.hpp +++ b/cpp/match.hpp @@ -1,14 +1,14 @@ #pragma once #include namespace ivy { struct Match { int score; std::string content; }; -static bool sort_match(const Match& a, const Match& b) { return a.score > b.score; } +static bool sort_match(const Match& a, const Match& b) { return a.score < b.score; } } // namespace ivy