Filter

Bob Sneidar bobs at twft.com
Mon Dec 12 17:53:44 CST 2011


Worked for me.

on mouseUp pMouseBtnNo
    put field "Field" into myVar
    sort myVar numeric by the length of each
    put myVar into field "Field"
end mouseUp

Bob


On Dec 11, 2011, at 8:00 PM, DunbarX at aol.com wrote:

> I can do this the long way, but is there a clever sortkey that will sort lines by the length of those lines?
> 
> 
> In other words, if I have a variable myVar with:
> 
> 
> aaaaaaa
> xxx
> bbbb
> 
> 
> I want to write something like:
> 
> 
> sort myVar by the length of each
> 
> 
> to yield:
> 
> 
> xxx
> bbbb
> 
> aaaaaaa
> 
> 
> Thanks,
> 
> 
> Craig Newman
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list