mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-02 01:25:45 +01: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