[thelist] 1.1.2 Sorting

Scott Brady evolt at scottbrady.net
Thu Dec 5 15:06:01 CST 2002


>> Your only hope is to parse it on the periods, sort each field left to
>right,
>> then rebuild the strings.
>
>
>I don't think that would work either.  Take the example from my last post:
>
>1.1.1
>19.1.1
>2.1.1
>
>This would sort as shown above instead of the desired:
>
>1.1.1
>2.1.1
>19.1.1
>

I think they meant to parse along the periods, sort those numerically (instead of alphabetically), and then recombine the strings.

It sounds like it'd be a huge headache, but it should work.

Scott Brady





More information about the thelist mailing list