sort { $a cmp $b }
Note that the $a cmp $b "lexicographic ascending" sorting order is the default ordering of sort, so this expression can be replaced with just sort (i.e, no { $a cmp $b } code block) wherever it appears here for a significant speed increase for sufficiently large data arrays — but they may have to be quite large!
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Data with Letter(s) & Number sort query
by AnomalousMonk
in thread Data with Letter(s) & Number sort query
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |