Show 'subset' search suggestions last

(imported from commit 849e151cfeb56b288419e12621d122327e619023)
This commit is contained in:
Steve Howell 2013-07-24 13:25:59 -04:00
parent 782e2d43bf
commit 312452f174
1 changed files with 3 additions and 3 deletions

View File

@ -427,9 +427,6 @@ exports.initialize = function () {
suggestions = get_special_filter_suggestions(query, operators);
result = result.concat(suggestions);
suggestions = get_operator_subset_suggestions(query, operators);
result = result.concat(suggestions);
suggestions = get_stream_suggestions(query);
result = result.concat(suggestions);
@ -447,6 +444,9 @@ exports.initialize = function () {
suggestions = get_topic_suggestions(query, operators);
result = result.concat(suggestions);
suggestions = get_operator_subset_suggestions(query, operators);
result = result.concat(suggestions);
// We can't send typeahead objects, only strings, so we have to create a map
// back to our objects, and we also filter duplicates here.
search_object = {};