sort container

Jeanne A. E. DeVoto jeanne at
Sun Jan 20 02:44:00 EST 2002

At 12:59 PM -0800 1/19/2002, yves COPPE wrote:
>Let's suppose a tabstop fld
>the first column contains dates
>the second text
>I'd like to sort the fld so that
>it's sorted by date (first column)
>and afterwards sorted by text (alphabetically)
>in this case the sortkey changes first it's item 1 of fld "xxx" and
>then it's item 2 of fld "xxx"
>How ?

  set the itemDelimiter to tab
  sort lines of field "Stuff" by item 2 of each
  sort lines of field "Stuff" dateTime by item 1 of each

Jeanne A. E. DeVoto ~ jeanne at
Runtime Revolution Limited - Power to the Developer!

More information about the Use-livecode mailing list