From 4e174d65f872b2803be18825133c14d300ba4277 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 23 Jul 2022 09:00:51 +0100 Subject: [PATCH] fix: reverse the order of results This makes all of the relevant results come at the bottom of the list to keep your eyes closer to the prompt. --- cpp/match.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/match.hpp b/cpp/match.hpp index 202227e..2ca6d1c 100644 --- a/cpp/match.hpp +++ b/cpp/match.hpp @@ -9,6 +9,6 @@ struct Match { 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