http://www.perlmonks.org?node_id=619127


in reply to sorting a list of hashes on an element/attribute of the hash

There are a few ways, but here's one:

@$data = sort { $a->{order} <=> $b->{order} } @$data;

--
print "Just Another Perl Adept\n";