for (let i = 1; i <= length; ++i) {
            const d = compare(a[m - i], b[n - i]);

            if (d !== 0) return d;
        }