Hi Klaus,
Yes, I have gotten the "sort" command code to work!

I think the problem that I had was where I was placing the command. It finally worked when I created a new card and used the "preOpenCard" statement:
Code: Select all
preOpenCard
sort field "Field" ascending
end preOpenCard
Then I accessed the script from a different card. The script ran perfectly. I need to look at "item" and delimiters some more.
I read that the main stack and first card should really not be used for much other than holding the new cards. It sounds like sub stacks and/or cards are the way to go. Could that be because the mainStack/card1 only runs once when the app opens or is it my ignorance of the finer points?
The script that Bogs gave me helped a lot. I could study it to see what it was doing. All the feedback here got my "baby steps" sort command issue solved.
Where to place the code is tricky for me. I've been studying your conference reference. That does a nice job of describing some of the information on Stacks and Cards, etc.
I do wish that the dictionary would give a real code sample at the bottom of the description. Sometimes it does and other times, it doesn't. A true code sample would help new people with the syntax. Ah, well, for such a few developers, LC is truly an amazing piece of work. I'm in awe of what they have done.
Thanks again to everyone.
-Rachel