in reply to Sorting array of hash references

davido provided a nice example, but if you want to sort it with the highest scores first you need to switch the position of the $a and $b in the sort block:

my @sorted = sort { $b->{score} <=> $a->{score} || $a->{name} cmp $b->{name} } @data;

See sort and the Tutorials on QandASection: sorting for more information.

Don't forget about Super Search, either. Searching for "sort array of hashes" turns up several good hits, including: