This means that the comparator uses national character sets when comparing.
In the example in Polish, there is the letter Ł, which in the national character set is between L and M.
In the example, when we have the lines: Ltest, Łtest, Mtest, Ztest string:
caseInsensitiveCompare yields: Ltest, Mtest, Ztest, Łtest
localizedCaseInsensitiveCompare results in: Ltest, Łtest, Mtest, Ztest
source share