LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
I have been able to sucessfully sort a fld on a single item but am struggling with the syntax to get it to sort on two items. eg sort by type and then by size of that type where the type is in item 3 and size is in item 5 of each record line. this is what I have currently which does not work
put fld "productSpecs" into tproductspecs
sort lines of tproductspecs by item 3 of each
sort lines of tproductspecs by item 5 of each
put tproductspecs
I hoped to answer but Klaus is really very fast
I had begun a script creating subcategories to be separately sorted out
The syntax proposed by Klaus works fine but I do not see it in the dictionary of RevStudio 4.0.0 950
( Maeby that i progress too slowly in english)
P.S. Klaus, some children of the hospital play with Egg-Eier with pleasure.
I shall soon send you a "defininitive" version
I'm not so sure what klaus example does (and I can't see it in the dictionary either), but to make two sorts, the _least_ important sort has to come first. I suggest to invert the two sort lines (as shown below). That way the sort will be by item 3 first, and if several item 3 entries are equal, then item 5 will be used to sort these accordingly.
put fld "productSpecs" into tproductspecs
sort lines of tproductspecs by item 5 of each
sort lines of tproductspecs by item 3 of each
put tproductspecs
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
To me they're not part of the documentation, they're user comments. And of course, as I am using my own docu stack, I don't get the chance to look at those, ever.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode