Another option is:@sorted=sort{$b cmp $a} @unsorted; # for strings @sorted=sort($b <=> $a) @unsorted; # for numbers
@sorted=reverse sort @unsorted #for strings
In reply to Re: How do I sort a list in reverse order?
by vroom
in thread How do I sort a list in reverse order?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |