in reply to [ Natural Sort ]: Sorting a string with numbers
One small additional facet: because the (packed) index is appended to the key, this will gave you a stable sort even if the underlying sort is unstable.
See sort for more details about what that means, and when it might be relevant.
Hugo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [ Natural Sort ]: Sorting a string with numbers (stable?)
by tye (Sage) on Aug 13, 2005 at 01:06 UTC |