From fe5e05f8aab195819339db5a8ce975a3733c0a6f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 12 Jan 2020 21:31:04 -0500 Subject: Fix incorrect result ordering --- ext/bg/js/dictionary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3