<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I properly arrange the order of options in the Column Switcher? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-properly-arrange-the-order-of-options-in-the-Column/m-p/891233#M105270</link>
    <description>&lt;P&gt;I think with column switcher you either have to rely on column order of the table or alphabetical ordering&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1753943345414.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79286iB422E16AFA6D7B2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1753943345414.png" alt="jthi_0-1753943345414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what Original Order means in this case though as it might have different meaning when we are talking about columns in a JMP table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1753943414965.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79287iDE77B17C1C1D266D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1753943414965.png" alt="jthi_1-1753943414965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but I think in the case of column switcher it might be "Table Order" and not Original Order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For JMP Table&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/rearrange-columns-in-data-tables.shtml" target="_blank" rel="noopener"&gt;Using JMP &amp;gt; Enter and Edit Your Data &amp;gt; Organize Data in Data Tables &amp;gt; Rearrange Columns in Data Tables&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="defTerm"&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Original&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Order&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="defText"&gt;&lt;EM&gt;Returns the columns to the&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;order&lt;/SPAN&gt;&amp;nbsp;they were in when data table was last saved.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 06:41:09 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-07-31T06:41:09Z</dc:date>
    <item>
      <title>How can I properly arrange the order of options in the Column Switcher?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-properly-arrange-the-order-of-options-in-the-Column/m-p/884199#M104801</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How can I properly arrange the order of options in the Column Switcher without changing the actual order of fields in a DataTable? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the provided JSL, simply sorting the list of columns does not affect the order of options in the Column Switcher. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have noticed that sometimes the actual order of columns in the DataTable can affect the order of options in the Column Switcher, but other times it does not (I do not know the reason). However, when working with a DataTable that has many columns, changing the order of the columns is very time-consuming and seems meaningless. Is there a way to achieve the desired sorting of options in the Column Switcher without changing the actual column order?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 
dt = open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column( "Column 0", formula( :weight+1 ) );
dt &amp;lt;&amp;lt; New Column( "Column 14", formula( :weight+2 ) );
dt &amp;lt;&amp;lt; New Column( "Column 3", formula( :weight+3 ) );
dt &amp;lt;&amp;lt; New Column( "Column 2", formula( :weight+4 ) );
dt &amp;lt;&amp;lt; New Column( "Column 11", formula( :weight+5) );
dt &amp;lt;&amp;lt; New Column( "Column 1", formula( :weight+6 ) );
dt &amp;lt;&amp;lt; New Column( "Column ", formula( :weight+7 ) );

col = dt &amp;lt;&amp;lt; get column names( string );
SwitchOption = {};
For Each( {value, index}, col,
	If( Word( 2, value, " " ) != "",
		SwitchOption = Insert( SwitchOption, col[index] )
	)
);
//The column list before the order arrangement.
Graph = Graph Builder(
	Size( 534, 464 ),
	Show Control Panel( 0 ),
	Variables( X( :name ), Y( :Column 0 ) ),
	Elements( Points( X, Y, Legend( 5 ) ) )
);
Graph &amp;lt;&amp;lt; Column Switcher(
	Column( "column 0" ),
	SwitchOption, 
										
	Title( "Test" )
);
//The column list after the order arrangement.
orderedSwitchOption = {};
oder = {};
For Each( {value, index}, SwitchOption, oder = Insert( oder, Num( Word( 2, value, " " ) ) ) );
oder = Sort List( oder );
For Each( {value, index}, oder,
	orderedSwitchOption = Insert( orderedSwitchOption, "Column " || Char( value ) )
);
Graph2 = Graph Builder(
	Size( 534, 464 ),
	Show Control Panel( 0 ),
	Variables( X( :name ), Y( :Column 0 ) ),
	Elements( Points( X, Y, Legend( 5 ) ) )
);

Graph2 &amp;lt;&amp;lt; Column Switcher(
	Column( "column 0" ),
	orderedSwitchOption, 
										
	Title( "Ordered Column" )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jul 2025 23:33:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-properly-arrange-the-order-of-options-in-the-Column/m-p/884199#M104801</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-07-08T23:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I properly arrange the order of options in the Column Switcher?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-properly-arrange-the-order-of-options-in-the-Column/m-p/891233#M105270</link>
      <description>&lt;P&gt;I think with column switcher you either have to rely on column order of the table or alphabetical ordering&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1753943345414.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79286iB422E16AFA6D7B2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1753943345414.png" alt="jthi_0-1753943345414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what Original Order means in this case though as it might have different meaning when we are talking about columns in a JMP table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1753943414965.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79287iDE77B17C1C1D266D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1753943414965.png" alt="jthi_1-1753943414965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but I think in the case of column switcher it might be "Table Order" and not Original Order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For JMP Table&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/rearrange-columns-in-data-tables.shtml" target="_blank" rel="noopener"&gt;Using JMP &amp;gt; Enter and Edit Your Data &amp;gt; Organize Data in Data Tables &amp;gt; Rearrange Columns in Data Tables&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="defTerm"&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Original&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Order&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="defText"&gt;&lt;EM&gt;Returns the columns to the&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;order&lt;/SPAN&gt;&amp;nbsp;they were in when data table was last saved.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 06:41:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-properly-arrange-the-order-of-options-in-the-Column/m-p/891233#M105270</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-07-31T06:41:09Z</dc:date>
    </item>
  </channel>
</rss>

