-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow options.sort to be a sort function #24
Comments
We use this: sifter = new Sifter(input);
if (!sort) {
sifter.getSortFunction = function() {
return null;
};
}
result = sifter.search(query, options); |
Yeah I did see that solution in one of the other issues. I just think it'd On Wed, 22 Jul 2015 8:17 pm Martin Broerse [email protected] wrote:
|
Hmm. Well, maybe it is reasonably obvious and I'm just being pedantic 😜 On Wed, 22 Jul 2015 10:10 pm Franklin Ross [email protected] wrote:
|
@alpha-cast Many people searched for it and didn't find it so I don't think it is to obvious. So perhaps you are not pedantic 😄 It would be great if you can create a PR for the documentation. |
Yeah OK. I've never actually created a pull request for GitHub before, but have been meaning to learn for a while. Better late than never ;-P Give me a few days, I've got a sprint review for a client tomorrow and want to get a couple of things done. |
Super! If you need help with github please let me know. |
This would make it consistent with the undocumented
options.score
, and would provide much simpler workarounds for some of the other issues which want to disable sorting. In that case you could just do something likeoptions.sort = function (results) { return results; }
.The text was updated successfully, but these errors were encountered: