Sorting a table: I have created a new table control using the "Table" command. This works very well. In addition I would like to let the user sort the table by different columns. Is this possible?

Yes. Create separate pushbuttons e.g. "Order by material number" "Order by text" that process an InputScript. In the InputScript use the "Sort" command to reorder the table values. Since the "Sort" command assumes rows and columns as numbers, you need to copy all table variables into numbered variables, then Sort, then copy them back. For example, instead of

V[mytable.cell.material.4]

you use

V[mytable.cell.1.4]