Here is an example of how to do the sorting using JSL
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );
obj = Fit Model(
Y( :y ),
Effects( :Drug, :x ),
Personality( Standard Least Squares ),
Emphasis( Effect Leverage )
);
myobj = obj << Run(
:Drug << {LSMeans Student's t( .05, Connecting Letters Report( 1 ) )}
);
objr = obj << report;
Report(myobj)["Response y","Drug","LSMeans Differences Student's t",TableBox(1)] << sort by column( "Level", ascending = 1);
![txnelson_0-1686740842383.png txnelson_0-1686740842383.png](https://community.jmp.com/t5/image/serverpage/image-id/53790iDFF0F97250D42492/image-dimensions/906x716?v=v2)
Jim