Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Sort::Key::Natural sorting discrepancyby kcott (Archbishop) |
on Nov 01, 2017 at 07:38 UTC ( [id://1202497]=note: print w/replies, xml ) | Need Help?? |
G'day cr8josh, It's unclear what you want because you haven't shown that. Piecing together what's in your OP and "Re^2: Sort::Key::Natural sorting discrepancy", it seems you want a case-insensitive sort with underscores sorting before letters. In ASCII, uppercase letters (65-90) come before an underscore (95) which comes before lowercase letters (97-122). If that is indeed what you want, you can do it like this:
— Ken
In Section
Seekers of Perl Wisdom
|
|