in reply to Re: sorting a list of hashes on an element/attribute of the hash
in thread sorting a list of hashes on an element/attribute of the hash
When sorting large data sets and for some kinds of data, as for instance small numbers (as shown on the OP), it can be much faster than Sort::Key.
use Sort::Key::Radix qw(ukeysort); my @by_order = ukeysort { $_->{order} } @data;
...though I am still getting some FAIL reports from the CPAN testers.
|
---|