sort by length of line

dunbarx at aol.com dunbarx at aol.com
Sun Dec 11 23:04:38 EST 2011




Sorry, should have made a new thread.





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



 



More information about the Use-livecode mailing list