in reply to Shouldn't this sort be simple?

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.

Replies are listed 'Best First'.
Re^2: Shouldn't this sort be simple?
by Unimatic1140 (Novice) on Mar 03, 2010 at 22:52 UTC
    YAY, thank you almut, that worked perfectly, I was searching the internet all day long and could find the answer. I knew it had to be simple. Thanks again!