diff --git a/examples/index.js b/examples/index.js index 5392a59964..fcee11c512 100644 --- a/examples/index.js +++ b/examples/index.js @@ -72,7 +72,7 @@ // sort examples, first by number of words matched, then // by word frequency examples.sort(function (a, b) { - return a.score - b.score || a.words - b.words; + return b.score - a.score || b.words - a.words; }); return examples; }