Does Perl just compare the ASCII values of each character of each string until it can place one before the other or does the language compare strings in another way?
Perl does take your current locale into account and uses the sort order defined by this locale. This does not only take charsets (such as ASCII) into account but also languages. For instance words are sorted differently in French than in German, etc…
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With