Yes, the point is that he's not sorting on the correct values (most likely) and he can certainly use a function to translate the keys just as well as using a ST.
No. You must use the function (or equivalent). Whether ST is used or not has no bearing on whether it works or not.
| With ST | Without ST | |
|---|---|---|
| With function | Works | Works |
| Without function | Doesn't work | Doesn't works |
As an aside, using ST doesn't only make the code more complex, I suspect it also makes the makes it slower in this case.
In reply to Re^4: Save the resultant of " hash sorted by values "
by ikegami
in thread Save the resultant of " hash sorted by values "
by sundeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |