$cool[1][1] = 5; $cool[1][2] = 2; @cool = sort(@cool); foreach $item(@cool) { print "$item\n"; } how can I sort this correctly? Thanks