mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 19:45:05 +08:00
fix: Invert the exact sort function result
This commit is contained in:
parent
a335a90ee5
commit
3f7697f9f0
@ -18,5 +18,5 @@ pub fn exact(lhs: &Document, rhs: &Document) -> Ordering {
|
|||||||
let lhs = number_exact_matches(&lhs.matches);
|
let lhs = number_exact_matches(&lhs.matches);
|
||||||
let rhs = number_exact_matches(&rhs.matches);
|
let rhs = number_exact_matches(&rhs.matches);
|
||||||
|
|
||||||
lhs.cmp(&rhs)
|
lhs.cmp(&rhs).reverse()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user