change(common/core/web): use of shorter arrow func from comment

This commit is contained in:
jahorton 2021-06-23 08:30:15 +07:00
parent e57ba467fe
commit 13e4293fbf

View file

@ -162,9 +162,7 @@ namespace com.keyman.text {
let KEYSTROKE_EPSILON = Math.exp(-5);
// Sort the distribution into probability-descending order.
keyDistribution.sort(function(a, b) {
return b.p - a.p;
});
keyDistribution.sort((a, b) => b.p - a.p);
let activeLayout = this.activeKeyboard.layout(keyEvent.device.formFactor);
alternates = [];