aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorPhil Crosby2012-06-03 01:22:25 -0700
committerPhil Crosby2012-06-03 16:56:39 -0700
commit4a90ae22b2e0de76d0993e4158a6232e7de1c108 (patch)
treebfc78b15d60ea1324aab449a82734734cdb62060 /background_scripts
parenta8e46be20fa8070f7975381efc22c5a72880da6c (diff)
downloadvimium-4a90ae22b2e0de76d0993e4158a6232e7de1c108.tar.bz2
Rank results in the correct order.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/completion.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 41ebeab8..f1016ebb 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -138,7 +138,7 @@ class MultiCompleter
sortSuggestions: (suggestions) ->
for suggestion in suggestions
suggestion.computeRelevancy(@queryTerms)
- suggestions.sort (a, b) -> a.relevancy - b.relevancy
+ suggestions.sort (a, b) -> b.relevancy - a.relevancy
suggestions
RankingUtils =