Thanks for the answer.
However i would like to sort the columns in the source table according to the amount N in Summary Statistics.
Here is my script so far.
Names Default To Here( 1 );
dt = Current Data Table();
Main Menu( "columns viewer" );
w = Window("Data Table Columns Viewer");
w[ButtonBox(1)] << Click;
w[ButtonBox(3)] << Click;
w[Table Box (1)] << Sort By Column ("N");
And then I would like to send this reorder command.
2023-03-20 17_10_16-Window.jpg
2023-03-20 17_08_14-Clipboard.jpg