fix: Invert the exact sort function result

This commit is contained in:
Clément Renault 2018-09-21 22:09:48 +02:00
parent a335a90ee5
commit 3f7697f9f0

View File

@ -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()
} }