Sorting contents of variables

Klaus Major kmajor at metascape.org
Tue Mar 26 05:09:01 EST 2002


Hi Keith,

> I am trying to sort the contents of a variable by line using the second 
> word
> of each line.  The following returns an "error sorting" message:
>
> sort gHold by word 2 of each
>
> However, if I use the same code to sort the contents of a field 
> everything
> works fine (for example: sort fld newInfo by word 2 of each).
>
> Any explanations, or other suggestions for how I can sort the contents 
> of a
> variable by other than the leading characters?
>
> Thanks for the help.
>
> Keith Spieldenner

try:

sort lines of gHold by word 2 to of each

Should do the trick ;-)

At least it did here...


Regards

Klaus Major
kmajor at metascape.org




More information about the use-livecode mailing list