where CONSTANT is a different constant in each of the 3 functions. And the other two have a sort like this:for my $key (sort { $ref->{$b}->[CONSTANT] <=> $ref->{$a}->[CONSTANT] +} keys %$ref)
I could make a generic function if someone could help me figure out how to do the sort in it..for my $key (sort { $ref->{$b} <=> $ref->{$a} } keys %$ref)
thank you
In reply to Sorting question by m.y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |