Yours will sort on keys, but I'm pretty sure the OP wants his hash sorted on values.
In reply to Re^2: how to put hash key and value in order
by muba
in thread how to put hash key and value in order
by ulaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |