Merge pull request #114 from Kerollmops/hot-fix-ranked-attribute

Do not error when an attribute is registered for ranking
This commit is contained in:
Clément Renault 2019-02-21 23:17:10 +01:00 committed by GitHub
commit 23833bac10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ impl<'a> SortByAttr<'a> {
None => return Err(SortByAttrError::AttributeNotFound),
};
if schema.props(attr).is_ranked() {
if !schema.props(attr).is_ranked() {
return Err(SortByAttrError::AttributeNotRegisteredForRanking);
}