pro_perl thread: Sort 2D hash
Nevermind, found the solution myself:
@keys = sort { $entry{$a}{'field'} cmp $entry{$b}{'field'} } keys %hash;
Chris
|
![]() |
P2P Archives
|
|
New Titles for ASP.NET |
pro_perl thread: Sort 2D hash
Nevermind, found the solution myself:
@keys = sort { $entry{$a}{'field'} cmp $entry{$b}{'field'} } keys %hash;
Chris
|