sort by length of line (Weird)
Ken Ray
kray at sonsothunder.com
Mon Dec 12 12:18:24 EST 2011
On Dec 12, 2011, at 11:09 AM, Mark Schonewille wrote:
> Try numeric.
Right - Here's an explanation: when you sort by length, what gets sorted is the actual *numbers* themselves, so unless you tell LC to "sort numeric", you'll get things in this order:
1
10
11
2
3
4
(etc.).
With your data, it would be:
10 (the length of "DEZINCKING")
11 (the length of "RAZORBACKS")
13 (the length of "ZOOPLANKTONIC")
6 (the length of "ZINCKY")
6 (the length of "ZEBECK")
(etc.)
So if you do:
sort numeric tData by length(each)
you'll get what you're looking for…
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list