We needed to address nesting of string values as well as regular orderingI don't understand what you mean by this. It looks like you're just sorting on the length of the string. Replacing your big for loop with the following line produces the same output.
@v = sort {length($a) <=> length($b)} @v;
In reply to Re: Funky sorting
by blakem
in thread Funky sorting
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |