386
continue;
387
}
389
if (codeA >= 128 || codeB >= 128) {
390
// not ASCII letters -> fallback to lower-casing strings
391
return compareSubstring(a.toLowerCase(), b.toLowerCase(), aStart, aEnd, bStart, bEnd);
392
}
394
>
// mapper lower-case ascii letter onto upper-case varinats
395
>
// [97-122] (lower ascii) --> [65-90] (upper ascii)
396
>
if (isLowerAsciiLetter(codeA)) {
397
codeA -= 32;
398
}
400
codeB -= 32;
401
}
403
>
// compare both code points
404
>
const diff = codeA - codeB;
405
>
if (diff === 0) {
406
continue;
407
}