my @ar = ( { name => 'alpha', sorter => 2, test => 'I', }, { name => 'beta', sorter => 1, test => 'II', }, ); @ar = map{ $_->{name}, $_->{test} } sort{ $a->{sorter} <=> $b->{sorter} }@ar; # nimm nur das was brauchst print Dumper $_ for @ar;