in reply to sort in array of hash required

@Aname = map {$_->[0]} sort {$a->[1] <=> $b->[1]} map { [$_, sort {$a <=> $b} grep {/^\d+$/} keys %$_] } @Aname;

This will sort by the smallest integer key in each @Aname element. If there will only ever be a single key you can omit the sort in front of the grep.

True laziness is hard work

Replies are listed 'Best First'.
Re^2: sort in array of hash required
by raybies (Chaplain) on Nov 16, 2011 at 20:23 UTC
    /me starts cringing... ;)

    (This is exactly what I was referring to (see my above reply)... :-)

    I bow to your amazing PerlMonk Brain, Grandfather.