for (let i = 0; i < length; ++i) {
            const d = compare(a[i], b[i]);

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