in reply to Re: Re: Sort Array by length of Value
in thread Sort Array by length of Value
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;
|
|---|