fix grouped definition sorting bug (fixes #41)
This commit is contained in:
parent
405e487a73
commit
e62c46c4fc
@ -375,7 +375,7 @@ function dictTermsGroup(definitions, dictionaries) {
|
||||
expression: firstDef.expression,
|
||||
reading: firstDef.reading,
|
||||
reasons: firstDef.reasons,
|
||||
score: groupDefs.reduce((x, y) => x.score > y.score ? x.score : y.score, Number.MIN_SAFE_INTEGER),
|
||||
score: groupDefs.reduce((p, v) => v.score > p ? v.score : p, Number.MIN_SAFE_INTEGER),
|
||||
source: firstDef.source
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user