Sort using number of definitions (#2166)

This commit is contained in:
toasted-nutbread 2022-05-29 20:53:21 -04:00 committed by GitHub
parent 5d0c22e76d
commit f3024c5018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1402,6 +1402,10 @@ class Translator {
if (i !== 0) { return i; }
}
// Sort by definition count
i = v2.definitions.length - v1.definitions.length;
if (i !== 0) { return i; }
// Sort by dictionary order
i = v1.dictionaryIndex - v2.dictionaryIndex;
return i;