See RE: RE: Re: Sorting on Section Numbers some important style comments.my @sorted= grep {s/(^|\D)0+(\d)/$1$2/g,1} sort grep {s/(\d+)/sprintf"%06.6d",$1/ge,1} @data;
Features and limitations:
In reply to Re: How do I do a natural sort on an array?
by tye
in thread How do I do a natural sort on an array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |