From 3f7697f9f0951b23e2fad4ecac4471a32fe7770d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 21 Sep 2018 22:09:48 +0200 Subject: [PATCH] fix: Invert the exact sort function result --- raptor/src/rank/exact.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raptor/src/rank/exact.rs b/raptor/src/rank/exact.rs index 680369a0b..7c3189fbc 100644 --- a/raptor/src/rank/exact.rs +++ b/raptor/src/rank/exact.rs @@ -18,5 +18,5 @@ pub fn exact(lhs: &Document, rhs: &Document) -> Ordering { let lhs = number_exact_matches(&lhs.matches); let rhs = number_exact_matches(&rhs.matches); - lhs.cmp(&rhs) + lhs.cmp(&rhs).reverse() }