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


in reply to Sorting complex data

I like Sort::Key for this:

use Sort::Key qw/ nkeysort /; foreach ( nkeysort { $_->{id} } @{$json_response->{report}} ) { # ... }

Good Day,
    Dean