<?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: Using SortByColumn in a TableBox in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822434#M100210</link>
    <description>&lt;P&gt;Thanks. That seems to be working for a standalone tablebox which is part of what I am trying to do.&lt;BR /&gt;&lt;BR /&gt;Sadly, I also want to perform a similar two column sequential sort on the Process Screening platform directly which seems stubborn as well. In this case, I cannot work with the tablebox directly and that is why I was using the SendToReport command.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 23:47:42 GMT</pubDate>
    <dc:creator>AdditiveRange10</dc:creator>
    <dc:date>2024-12-12T23:47:42Z</dc:date>
    <item>
      <title>Using SortByColumn in a TableBox</title>
      <link>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822388#M100193</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I have a TableBox generated from a process screening script. I would like to use two column to sort by sequentially.&lt;BR /&gt;&lt;BR /&gt;Firstly, the col "Column" and then "xDrawingNumber". If I do this manually on the TableBox the output looks correctly, however scripting it I am unable to figure it out. I use the SortByColumn in the SendToReport option but not combination of groupings or commands have given me the right answer.&lt;BR /&gt;&lt;BR /&gt;Any suggestion would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdditiveRange10_0-1734034070518.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71074iD0A97E34DFECD97C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdditiveRange10_0-1734034070518.png" alt="AdditiveRange10_0-1734034070518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SendToReport( Dispatch( {}, "", TableBox, {SortByColumn( "Column",1)}))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 20:08:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822388#M100193</guid>
      <dc:creator>AdditiveRange10</dc:creator>
      <dc:date>2024-12-12T20:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using SortByColumn in a TableBox</title>
      <link>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822412#M100201</link>
      <description>&lt;P&gt;Check Table Box from scripting index and look for Sort&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1734041882220.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71078i7BAC77549DE47E81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1734041882220.png" alt="jthi_0-1734041882220.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to do some simple "multi-column" sorts by sorting multiple times in correct order&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Mountains",
	tb = Table Box(
		Number Col Box("R", {1,1,2,2}),
		String Col Box("Mountain",
			{"K2", "Delphi", "Kilimanjaro", "Grand Teton"}
		),
		Number Col Box("Elevation (meters)",
			{8611, 681, 5895, 4199}
		),
		Plot Col Box("", {8611, 681, 5895, 4199})
	)
);
tb &amp;lt;&amp;lt; Sort By Column(3, 1);
tb &amp;lt;&amp;lt; Sort By Column(1, 1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 22:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822412#M100201</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-12-12T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using SortByColumn in a TableBox</title>
      <link>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822434#M100210</link>
      <description>&lt;P&gt;Thanks. That seems to be working for a standalone tablebox which is part of what I am trying to do.&lt;BR /&gt;&lt;BR /&gt;Sadly, I also want to perform a similar two column sequential sort on the Process Screening platform directly which seems stubborn as well. In this case, I cannot work with the tablebox directly and that is why I was using the SendToReport command.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 23:47:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822434#M100210</guid>
      <dc:creator>AdditiveRange10</dc:creator>
      <dc:date>2024-12-12T23:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using SortByColumn in a TableBox</title>
      <link>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822435#M100211</link>
      <description>&lt;P&gt;I think I found a solution. I removed any sorts from the Process Screening platform directly and then just use the Dispatch command with SortByColumn twice sequentially on the Process Screening variable. The sorting now looks as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 23:59:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-SortByColumn-in-a-TableBox/m-p/822435#M100211</guid>
      <dc:creator>AdditiveRange10</dc:creator>
      <dc:date>2024-12-12T23:59:02Z</dc:date>
    </item>
  </channel>
</rss>

