But then I also wonder if the order of the values _after_ sorting on length might be significant. You might want to consider something like this:@b = sort { length $b <=> length $a } @a;
@b = sort { length $b <=> length $a || $a cmp $b } @a;
In reply to Re: Re: Re: Sort Array by length of Value
by shenme
in thread Sort Array by length of Value
by Emanuel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |