<?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 does JSL implement the sorting of memory arrays? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754132#M93627</link>
    <description>&lt;P&gt;You can sort vectors and lists but I'm not sure if you can sort matrix by specific column. But you can always convert that matrix to private table, sort it and get it back into matrix.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
ar = dt &amp;lt;&amp;lt; GetAsMatrix({2, 4});

dt_m = As Table(ar, &amp;lt;&amp;lt;private);
dt_m &amp;lt;&amp;lt; Sort(By(1), Order(Descending), Replace Table);

ar1 = dt_m[0,0];
Close(dt_m, no save);

show(ar, ar1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 May 2024 05:52:49 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-05-14T05:52:49Z</dc:date>
    <item>
      <title>How does JSL implement the sorting of memory arrays?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754114#M93620</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ar = dt &amp;lt;&amp;lt; GetAsMatrix( {2, 4} );
ar &amp;lt;&amp;lt; Sort( By( 1 ), Order( Descending ), replace table );//？？&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Of course, this code is just a try.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 14 May 2024 02:28:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754114#M93620</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-14T02:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: How does JSL implement the sorting of memory arrays?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754132#M93627</link>
      <description>&lt;P&gt;You can sort vectors and lists but I'm not sure if you can sort matrix by specific column. But you can always convert that matrix to private table, sort it and get it back into matrix.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
ar = dt &amp;lt;&amp;lt; GetAsMatrix({2, 4});

dt_m = As Table(ar, &amp;lt;&amp;lt;private);
dt_m &amp;lt;&amp;lt; Sort(By(1), Order(Descending), Replace Table);

ar1 = dt_m[0,0];
Close(dt_m, no save);

show(ar, ar1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2024 05:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754132#M93627</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-14T05:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How does JSL implement the sorting of memory arrays?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754163#M93633</link>
      <description>&lt;P&gt;You might find something in &lt;LI-MESSAGE title="Sorting Lists" uid="240795" url="https://community.jmp.com/t5/JSL-Cookbook-Archived/Sorting-Lists/m-p/240795#U240795" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; useful. The Rank() function is often overlooked.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 09:12:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-JSL-implement-the-sorting-of-memory-arrays/m-p/754163#M93633</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-05-14T09:12:34Z</dc:date>
    </item>
  </channel>
</rss>

