<?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: What is criteria of column placement when sorting columns by data type? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948466#M109785</link>
    <description>&lt;P&gt;Here's a function that I believe does what you want.&amp;nbsp; Tested with JMP 19.04.&amp;nbsp; It breaks without the Eval( Eval Expr()).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;arrange_columns = Function( {dt},
	num_columns = dt &amp;lt;&amp;lt; Get Column Names( Numeric, String );
	char_columns = dt &amp;lt;&amp;lt; Get Column Names( Character, String );
	ex_columns = dt &amp;lt;&amp;lt; Get Column Names( Expression, String );
	rs_columns = dt &amp;lt;&amp;lt; Get Column Names( RowState, String );
	dt &amp;lt;&amp;lt; Reorder By Data Type();
	For Each( {group, index}, {num_columns, char_columns, ex_columns, rs_columns},
		If( N Items( group ) &amp;gt; 1,
			Eval( Eval Expr( dt &amp;lt;&amp;lt; Move Selected Columns( Expr( group[2 :: N Items( group )] ), After( group[1] ) ) ) )
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 May 2026 21:54:01 GMT</pubDate>
    <dc:creator>mmarchandFSLR</dc:creator>
    <dc:date>2026-05-15T21:54:01Z</dc:date>
    <item>
      <title>What is criteria of column placement when sorting columns by data type?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/945769#M109670</link>
      <description>&lt;P&gt;I have table of 172 columns in a specific order that are a mix of character and nominal data types. Using the window on the left side of the table, I sort the columns by type which occurs ok. However, within each type grouping, the columns are no longer in a specific order but seem to have been placed randomly. What is the criteria for the column placements when the sort is done?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 13:01:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/945769#M109670</guid>
      <dc:creator>RP_64</dc:creator>
      <dc:date>2026-05-04T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is criteria of column placement when sorting columns by data type?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/945873#M109677</link>
      <description>&lt;P&gt;According to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#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;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Reorder&lt;/SPAN&gt; By Data Type&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="defText"&gt;&lt;EM&gt;Arranges the columns from left to right in alphabetic order by data type (expression, row state, character, or numeric).&lt;/EM&gt;&lt;/P&gt;
&lt;P class="defText"&gt;So I would guess the columns are moved to data type groups (character, expression, numeric, row state) and stay then they stay in original order within those groups.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 17:05:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/945873#M109677</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-05-04T17:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is criteria of column placement when sorting columns by data type?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948453#M109783</link>
      <description>&lt;P&gt;Sadly, I don't want them arranged alphabetically which is the way JMP appears to want to arrange them, requiring more work at my end.. They are from survey and I want them kept in order seen.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 16:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948453#M109783</guid>
      <dc:creator>RP_64</dc:creator>
      <dc:date>2026-05-15T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is criteria of column placement when sorting columns by data type?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948455#M109784</link>
      <description>&lt;P&gt;You might impose the order you want with a prefix to the column name, such as an index value (01, 02, etc.). The ordered sorted by JMP would then be the same as the order by desired you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 16:16:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948455#M109784</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2026-05-15T16:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is criteria of column placement when sorting columns by data type?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948466#M109785</link>
      <description>&lt;P&gt;Here's a function that I believe does what you want.&amp;nbsp; Tested with JMP 19.04.&amp;nbsp; It breaks without the Eval( Eval Expr()).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;arrange_columns = Function( {dt},
	num_columns = dt &amp;lt;&amp;lt; Get Column Names( Numeric, String );
	char_columns = dt &amp;lt;&amp;lt; Get Column Names( Character, String );
	ex_columns = dt &amp;lt;&amp;lt; Get Column Names( Expression, String );
	rs_columns = dt &amp;lt;&amp;lt; Get Column Names( RowState, String );
	dt &amp;lt;&amp;lt; Reorder By Data Type();
	For Each( {group, index}, {num_columns, char_columns, ex_columns, rs_columns},
		If( N Items( group ) &amp;gt; 1,
			Eval( Eval Expr( dt &amp;lt;&amp;lt; Move Selected Columns( Expr( group[2 :: N Items( group )] ), After( group[1] ) ) ) )
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2026 21:54:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-criteria-of-column-placement-when-sorting-columns-by/m-p/948466#M109785</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-05-15T21:54:01Z</dc:date>
    </item>
  </channel>
</rss>

