borisyankov/DefinitelyTyped — pull request #3279 by aavezel (2014-12-08 11:30:01+00:00)
Title: sorter is comparer function

from bloodhound documentation (https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md#api):
sorter – A compare function used to sort matched datums for a given query.
link on "compare function" (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) shows that it result value in set of [-1, 0, 1]