in reply to Re: How to sort a hash by its values?
in thread How to sort a hash by its values?

That particular code won't work because without explicitly comparing the values like '$a <=> $b', the sort function will treat the values as strings and sort based on the first byte rather than its integer value.

So rather than:

314 232 82 0
You get:
0 232 314 82

Hope that helps.

Amel - f.k.a. - kel