Sort using number of definitions (#2166)
This commit is contained in:
parent
5d0c22e76d
commit
f3024c5018
@ -1402,6 +1402,10 @@ class Translator {
|
|||||||
if (i !== 0) { return i; }
|
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
|
// Sort by dictionary order
|
||||||
i = v1.dictionaryIndex - v2.dictionaryIndex;
|
i = v1.dictionaryIndex - v2.dictionaryIndex;
|
||||||
return i;
|
return i;
|
||||||
|
Loading…
Reference in New Issue
Block a user