<?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 Sort  by in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Sort-by/m-p/662549#M85134</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a table with 2 columns, "&lt;STRONG&gt;% of Total&lt;/STRONG&gt;" and "&lt;STRONG&gt;Correlation&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;I would like to sort simultaneously both columns in Descending only&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when I run the script, the column &lt;STRONG&gt;Correlation&lt;/STRONG&gt;&amp;nbsp;is sorted like&amp;nbsp;&lt;U&gt;Descendin&lt;/U&gt;g but&amp;nbsp;&lt;STRONG&gt;% of Total&lt;/STRONG&gt;&amp;nbsp;is sorted like &lt;U&gt;Ascending&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with my script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dt &amp;lt;&amp;lt; sort ( by ( "Correlation" , "% of Total" ), Order ( Descending ), Replace table );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1690379151999.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55285iC7F5A0A43AD76BEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1690379151999.png" alt="Dennisbur_0-1690379151999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 13:53:50 GMT</pubDate>
    <dc:creator>Dennisbur</dc:creator>
    <dc:date>2023-07-26T13:53:50Z</dc:date>
    <item>
      <title>Sort  by</title>
      <link>https://community.jmp.com/t5/Discussions/Sort-by/m-p/662549#M85134</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a table with 2 columns, "&lt;STRONG&gt;% of Total&lt;/STRONG&gt;" and "&lt;STRONG&gt;Correlation&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;I would like to sort simultaneously both columns in Descending only&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when I run the script, the column &lt;STRONG&gt;Correlation&lt;/STRONG&gt;&amp;nbsp;is sorted like&amp;nbsp;&lt;U&gt;Descendin&lt;/U&gt;g but&amp;nbsp;&lt;STRONG&gt;% of Total&lt;/STRONG&gt;&amp;nbsp;is sorted like &lt;U&gt;Ascending&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with my script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dt &amp;lt;&amp;lt; sort ( by ( "Correlation" , "% of Total" ), Order ( Descending ), Replace table );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1690379151999.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55285iC7F5A0A43AD76BEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1690379151999.png" alt="Dennisbur_0-1690379151999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 13:53:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sort-by/m-p/662549#M85134</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2023-07-26T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sort  by</title>
      <link>https://community.jmp.com/t5/Discussions/Sort-by/m-p/662570#M85135</link>
      <description>&lt;P&gt;As you want to sort both in same direction, perform the action interactively and get the script from enhanced log&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1690381082229.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55286iC56EEE5C4B13B5FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1690381082229.png" alt="jthi_0-1690381082229.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Open Data Table: Big Class.jmp
// → Data Table("Big Class")
Open("$SAMPLE_DATA/Big Class.jmp");


// Sort data table
Data Table("Big Class") &amp;lt;&amp;lt; Sort(
	By(:height, :weight),
	Replace Table,
	Order(Descending, Descending)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Most likely it is using default sorting for the second column which seems to be ascending&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:20:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sort-by/m-p/662570#M85135</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-26T14:20:13Z</dc:date>
    </item>
  </channel>
</rss>

