Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Changing ASCII collating sequence for sortby johngg (Canon) |
on Apr 18, 2022 at 10:14 UTC ( [id://11143049]=note: print w/replies, xml ) | Need Help?? |
Rather than using transliteration you could employ look-ups and a GRT sort.
The output
I hope this is useful. Update: I mistakenly omitted the space character from the start of the sort order string. Now corrected with an additional item " first" to check that spaces are sorted correctly. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|