documentcloud / visualsearch

A Rich Search Box for Real Data
http://documentcloud.github.io/visualsearch/
MIT License
1.8k stars 225 forks source link

Disable facets autocomplete sorting #24

Closed doobdargent closed 13 years ago

doobdargent commented 13 years ago

Hi there,

I would like to disable the sorting on the facets autocomplete. I tried to take a look but my JS skills are still limited. I found this in the search_facet.js:

resp(_.sortBy(matches, function(match) {
        if (match == value || match.value == value) return '';
        else return match;
      }));

But I don't know how to fix it :( May I have some help here?

Cheers, dOob d'Argent

doobdargent commented 13 years ago
resp(matches);

was the answer.

I'm a no-brainer sometimes!