Remove unused dictRowsSort
This commit is contained in:
parent
cc2e21cd86
commit
1c828d205c
@ -42,20 +42,6 @@ function dictConfigured(options) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function dictRowsSort(rows, options) {
|
|
||||||
return rows.sort((ra, rb) => {
|
|
||||||
const pa = (options.dictionaries[ra.title] || {}).priority || 0;
|
|
||||||
const pb = (options.dictionaries[rb.title] || {}).priority || 0;
|
|
||||||
if (pa > pb) {
|
|
||||||
return -1;
|
|
||||||
} else if (pa < pb) {
|
|
||||||
return 1;
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function dictTermsSort(definitions, dictionaries=null) {
|
function dictTermsSort(definitions, dictionaries=null) {
|
||||||
return definitions.sort((v1, v2) => {
|
return definitions.sort((v1, v2) => {
|
||||||
let i;
|
let i;
|
||||||
|
Loading…
Reference in New Issue
Block a user