in reply to "numeric" sort of keys?
You need to remove 'Drive' from the comparison so that perl can make a number from it. sub mysort { substr($a,5) <=> substr($b,5) } That could probably benefit fram a Schwartzian Transform.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: "numeric" sort of keys?
by Gorio3721 (Acolyte) on Sep 25, 2003 at 20:54 UTC | |
by Limbic~Region (Chancellor) on Sep 25, 2003 at 21:24 UTC | |
|
Re: Re: "numeric" sort of keys?
by Gorio3721 (Acolyte) on Sep 25, 2003 at 20:58 UTC | |
by Mr. Muskrat (Canon) on Sep 25, 2003 at 21:04 UTC |