sort by length of line (Weird)

Colin Holgate coiin at verizon.net
Mon Dec 12 12:26:56 EST 2011


I figured it out, and it's a funny little issue! It is doing the sort correctly, but is evaluating the length of the words in an alphabetic way. The 10 letter words are alphabetically shorter than the 9 letter words, because "10" comes before "9".

You can solve it like this:

sort fld 2 numeric by the number of chars of each





More information about the use-livecode mailing list