Do you know where your variables are? | |
PerlMonks |
Re^2: Advanced Sorting - GRT - Guttman Rosler Transformby ysth (Canon) |
on Jul 31, 2015 at 21:25 UTC ( [id://1137063]=note: print w/replies, xml ) | Need Help?? |
The hardest part is inverting the portions of the key which must sort descending.If the entire key is descending, you don't need to invert it; just using sort { $b cmp $a } is good enough. sort will recognize that specific code and not actually call the code block.
-- A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
In Section
Meditations
|
|