Here is the example from the Scripting Index
Help==>Scripting Index
that illustrates the Replace Table option for the Sort Platform
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Sort(
replace table,
By( :name ),
Order( Ascending )
);
Jim