Here is an example of one way to handle the question
names default to here(1);
table1 =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
table2 = New Table("Table 2",
New Column("Sort Order", character,
Values({"height","weight","sex"})
)
);
For( i = N Rows( table2 ), i >= 1, i--,
Try(
table1 << go to( Column( table2, 1 )[i] );
table1 << Move Selected Columns( To first );
)
);
Jim