in reply to Sorting AoH by two keys
I wonder if there's some way to hack this into something that actually would work, using sprintf %dd or something?... Actually, I don't wonder. Never mind...my $sorted = [ sort { $a->{under} . $a->{order} cmp $b->{under} . $b->{order} } @$aoh ];
|
|---|