in reply to Sorting Hash

You can't sort a hash. I guess you mean you want the values to be sorted.
my @sorted = sort {$a -> [1] <=> $b -> [1]} values %hash;
Abigail