A bit out of SORTS
Posted: Sat Sep 19, 2009 12:21 pm
I thought I would be smart and sort a table field using the first item and only lines 2 to the number of lines in the table.
The reason is to preserve "Default settings" called Default in item 1 of the first line, to remain in the first line.
Default
Armitage
Base
...... etc
by using
sort line 2 to NumberOfLines of field "SortedTable" ascending text by item 1 of each -- sorts from second item, text, ascending
This compiles, but will not run. It fails saying
"button "ID 1251": execution error at line 15 (sort: error sorting), char 1"
So, what is wrong with it, it makes sense to me?
The reason is to preserve "Default settings" called Default in item 1 of the first line, to remain in the first line.
Default
Armitage
Base
...... etc
by using
sort line 2 to NumberOfLines of field "SortedTable" ascending text by item 1 of each -- sorts from second item, text, ascending
This compiles, but will not run. It fails saying
"button "ID 1251": execution error at line 15 (sort: error sorting), char 1"
So, what is wrong with it, it makes sense to me?