cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lwx228
Level VIII

How does JSL's sorting operation not create a new window?

The result of sorting will not create a new window.But the same sort operation using the following JSL will produce a new window to display the sorted results.How do you make a JSL sorting operation not generate a new window?thank you!


dt = Current Data Table();
dt<<Sort(By(4),Order(descending));

 

2018-09-12_18-36-02.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: How does JSL's sorting operation not create a new window?

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

View solution in original post

pmroz
Super User

Re: How does JSL's sorting operation not create a new window?

It's in the scripting index.  Look for sort and you'll see all of the options.

dt = Open( "$sample_data\Big Class.jmp" );
dt << Sort( By( 4 ), Order( descending ), replacetable( 1 ) );

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: How does JSL's sorting operation not create a new window?

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
pmroz
Super User

Re: How does JSL's sorting operation not create a new window?

It's in the scripting index.  Look for sort and you'll see all of the options.

dt = Open( "$sample_data\Big Class.jmp" );
dt << Sort( By( 4 ), Order( descending ), replacetable( 1 ) );
lwx228
Level VIII

Re: How does JSL's sorting operation not create a new window?

replacetable

thanks you!