After trying several approaches, I just can't seem to see what I'm doing wrong. The goal is to sort the lines in a certain field by the first Item, then copy the data over into a second field. Copying the data from one field to the other works without problem, so maybe someone can shed some light on what I need to be doing to make the sort work. Here's some sample code:
Code: Select all
on mouseUp
sort lines of fld "field one" by Item 1
-- repeat for each line thisLine in field "field one"
-- put thisLine &cr after field "field two"
-- end repeat
end mouseUp
EZ
P.S. I've read the documentation and Dan's book enough to confuse myself.