|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Using system sort orderby sciurius (Beadle) |
| on Aug 11, 2025 at 09:59 UTC ( [id://11166005]=perlquestion: print w/replies, xml ) | Need Help?? |
|
sciurius has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I want my perl program to sort just like the system it is running on. This is trivial on Linux, but somehow seems complicated on Windows and macOS. I use the following test program On Windows, I get Same on macOS. When I create files with names "Maria Lenore", "Mária Helena" and "María Dolores" they sort correctly in the Explorer (Windows) and Finder (macOS). How can I have perl use the same sort order as the system? Windows 10 with Strawberry Perl 5.30 MacOS 10.15 with Perl 5.34. These versions are a bit old, but I can not imagine I'm the first to try such a sort in 25+ years.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||