Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Changing ASCII collating sequence for sort

by ibm1620 (Hermit)
on Apr 17, 2022 at 23:38 UTC ( [id://11143042]=note: print w/replies, xml ) Need Help??


in reply to Re: Changing ASCII collating sequence for sort
in thread Changing ASCII collating sequence for sort

This neatened it up a bit ...
my @sorted_list = sort { tl($a) cmp tl($b) } @list; sub tl { return shift =~ tr / .,\-;:!?"'`_#$%&*+\/|=@\\^~()<>[]{}0123456789AaBbCcDdEeF +fGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz / -~/r; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-16 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found