############################################## # Wrong! (thanks tobylink) #@AoH = sort { $a->{Son} <=> $b->{Son} } @AoH; # Correct. @AoH = sort { $a->{Son} cmp $b->{Son} } @AoH;
In reply to Re: How to sort an array of hashes based on one of the values in the hash?
by blue_cowdawg
in thread How to sort an array of hashes based on one of the values in the hash?
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |