SORT by length

Jerry Jensen jerry at
Mon Aug 7 18:29:59 EDT 2017

From the dictionary entry for “sort”:
If you don't specify a direction, the sort is ascending.
One of the following items:
	• ascending -sorts in ascending order
	• descending -sorts in descending order

> On Aug 7, 2017, at 3:23 PM, Richmond Mathewson via use-livecode <use-livecode at> wrote:
> I have a listField containing a number of words which I want to order so the longest comes
> first . . .
> doing this:
> sort lines of fld "myGuff" by length(each)
> sorts the words, but the shortest one comes first…

More information about the Use-livecode mailing list