I guess you need to modify the code in par_num to actually return the number associated with the name, instead of doing a simple numerical comparison of the names.
sub par_num { $a->{ (keys %$a)[0]} <=> $b->{ (keys %$b)[0]} };
... is untested but could do what you need.
In reply to Re^3: Array of Hashes and sorting by values
by Corion
in thread Array of Hashes and sorting by values
by pandelis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |