foreach $view2 ( sort {$b cmp $a} keys %view ) {
sort without an explicit sort routine is the same as sort {$a cmp $b} .... Swapping $a and $b reverses the outcome of the individual pairwise comparisons, and thus also the ordering of the result.
In reply to Re: Shouldn't this sort be simple?
by almut
in thread Shouldn't this sort be simple?
by Unimatic1140
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |