title: How to sort search results in typeahead/bloodhound?
body: <p>I am using typeahead.js 0.11.1 and try to sort the results coming from a remote source. According to the code there should be the possibility to override the default sort function of bloodhound. But my sort function is never called. Same counts for the identify function.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    var bloodhoundSearchEngine = new Bloodhound({
      // we do not need any tokenization cause this will be done on the server
      datumTokenizer : function(d) {
          return d;
      },
      queryTokenizer : function(q) {
          return q;
      },
      sorter : function(itemA, itemB) {
          console.log(itemA);
          if (itemA.count &lt; itemB.count) {
              return -1;
          } else if (itemA.count &gt; itemB.count) {
              return 1;
          } else
              return 0;
      },
      identify : function(item) {
          console.log(itemA);
          return item.value;
      },
      remote : {
          url : '/suggest/?term=%term',
          wildcard : '%term',
          transform : function(response) {
              return $.map(response.suggestItems, function(item) {
                  return {
                      value : item.value,
                      count : item.count
                  };
              });
          },
          rateLimitBy : 'debounce',
          rateLimitWait : 300
      }
  });
  
  $('#typeaheadinput .typeahead')
          .typeahead(
                  {
                      hint : true,
                      highlight : true,
                      minLength : 1
                  },
                  {
                      name : 'existing-names',
                      display : 'value',
                      limit : 20,
                      source : bloodhoundSearchEngine.ttAdapter()
                  });
  </code></pre>
  
  <p>Has anyone any hints on how to achieve this?</p>