in reply to sorting a list of hashes on an element/attribute of the hash
For small data sets, the answers given are readable and to the point. However, Sort::Key is just as readable and the fastest Perl sorting solution --- ideal if you have a large data set:
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
use Sort::Key ; # sorting by a numeric integer key: @by_order = ikeysort { $_->{order} } @$data;
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
In Section
Seekers of Perl Wisdom