Intelligent sorting: A bit of a poser

Klaus on-rev klaus at major.on-rev.com
Thu Jul 1 08:36:16 EDT 2010


Hi Hugh,

> I have a list of words, each ending in a number...
> 
> img1
> img10
> img11
> img2
> img201
> img3
> img4
> 
> How do I sort them so they are in the visually correct numerical order, like
> this? ...
> 
> img1
> img2
> img3
> img4
> img10
> img11
> img201
> 
> /H

This works for me:
...
sort lines of fld 1 numeric by char 4 to -1 of each
...


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com




More information about the use-livecode mailing list