aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-12 21:31:04 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-12 21:31:04 -0500
commitfe5e05f8aab195819339db5a8ce975a3733c0a6f (patch)
tree2c0be6a6b87c25ee404ccf54c4a66b84f807ae32 /ext/bg/js/dictionary.js
parent22c87c5d6e32e7009efb6a9794593a1be695b4ea (diff)
Fix incorrect result ordering
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 92adc532..ee7ee756 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -67,7 +67,7 @@ function dictTermsSort(definitions, dictionaries=null) {
i = v2.source.length - v1.source.length;
if (i !== 0) { return i; }
- i = v2.reasons.length - v1.reasons.length;
+ i = v1.reasons.length - v2.reasons.length;
if (i !== 0) { return i; }
i = v2.score - v1.score;