This is regression bug, was working as expected on Safari 13.1.2. All browsers (Chrome, Firefox, IE11, Safari 13.1.2) would result 1 for "lklhY8Lwzs".localeCompare("Lbt9ZT"), when latest Safari 14.1.2 results -1
What language do you have the OS set to? FWIW, I can't reproduce on Monterey with the OS set to English (UK).
I experienced this issue on BrowserStack Mac Big Sur Safari 14.1.2. I think its locale is US English or International English.
<rdar://problem/83156084>
Thanks! It is fixed in bug 215798. Please check that it is fixed in Safari Technology Preview :) *** This bug has been marked as a duplicate of bug 215798 ***
Ah, no bug 224047 :) *** This bug has been marked as a duplicate of bug 224047 ***