@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.
In reply to Re: sort in array of hash required
by GrandFather
in thread sort in array of hash required
by upaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |