boazsender/backbone.search — pull request #8 by jugglinmike (2012-12-04 00:17:50+00:00)
Title: Correct comparator method

From the Backbone.js documentation:

> "sortBy" comparator functions take a model and return a numeric or
> string value by which the model should be ordered relative to others.

Because the scoring function implemented here considers the value 1 to
be "most relevant" and 0 to be "least relevant", the comparator method
should return the inverse of this value.