in reply to Re^2: Transferring hash keys to array... Need help sorting
in thread Transferring hash keys to array... Need help sorting

Well thats another kettle of fish. you want to sort by contents and leep labels in synced order. This will sort labels by the contents of $hash numerically <=>.

my @labels=sort {$hash{$a}<=>$hash{$b}} keys %hash; my @content = @hash{@labels};