Intelligent sorting: A bit of a poser

Bob Sneidar bobs at twft.com
Thu Jul 1 12:45:24 EDT 2010


Whoa! You can do that?? Okay, how about concatenating sort criteria, like char 1 and char 3? Just curious I don't need to do that. 

Bob


On Jul 1, 2010, at 5:36 AM, Klaus on-rev wrote:

> 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
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list