mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 22:50:07 +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 rhs = number_exact_matches(&rhs.matches);
|
||||
|
||||
lhs.cmp(&rhs)
|
||||
lhs.cmp(&rhs).reverse()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user