An easy way to do it is to create a row of buttons above a tabbed field. In
each button put the script as follows:
--first button:
on mouseUp
sort lines of field "myField" by word 1 of each
end mouseUp
--second button:
on mouseUp
sort lines of field "myField" by word 2 of each
end mouseUp
etc.
as for spaces between column text, there is probably an elegant way of
scripting it.. however for my purposes I just put an underscore character
"_" between words.
rgds,
Blair Moxon
[EMAIL PROTECTED]
> -----Original Message-----
> From: Gregory Lypny [SMTP:[EMAIL PROTECTED]]
> Subject: Sorting a List Field with Many Columns
>
> I've got a list field with tab-separated strings on each line,
> which, in effect, creates the illusion of columns. When the field is
> shown, I'd like users to be able to sort it using any column "title" as
> the sort key (e.g., sort by column 1, column 2, and so on). What's the
> best way to handle this given that the string in each column is not one
> word?
>
>
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.