How can I use _.sortBy with _.template to sort the suggestions in typeahead? I have tried a lot of different things, is it even possible?
search() function inside scripts.js and call
// call typeahead's callback with search results (i.e., places) cb(data);
So you would get something like this if you wanted to sort by postal_code:
// call typeahead's callback with search results (i.e., places) cb(_.sortBy(data, 'postal_code'));
If this solves your problem, please click the check mark to accept the answer.