in reply to Re^3: Save the resultant of " hash sorted by values "
in thread Save the resultant of " hash sorted by values "
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Save the resultant of " hash sorted by values "
by wind (Priest) on Mar 23, 2011 at 22:43 UTC |