in reply to Re^2: Sorting the hash
in thread Sorting the hash

You just need to change:

print Dumper($x);
to:
print Dumper(\%x);