sorting a container by multiple items?

Josh Mellicker josh at dvcreators.net
Wed May 3 17:48:10 EDT 2006


I'm trying to sort the lines of a container by one, then another  
item... so I'm using a function to concatenate two fields:


sort lines of fld "userTasks" by buildSortFld(item 2 of fld  
"userTasks", item 15 of fld "userTasks")


function buildSortFld f1, f2
     return f1 && f2
end buildSortFld


This doesn't work because I need an "of each" so the sort function  
does all the lines... but wherever I put "for each", I get an error...

Where do you put "of each"?





More information about the use-livecode mailing list