<?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: two level sort in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113067#M23331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps Im missing something but a a standard proc sort data=your table; by exp measurementY; run; should do what you seek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Apr 2013 13:02:23 GMT</pubDate>
    <dc:creator>esjackso</dc:creator>
    <dc:date>2013-04-19T13:02:23Z</dc:date>
    <item>
      <title>two level sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113065#M23329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table containing a few different experiments A, B, C...that where output Y has been measured. I would like to sort Y in ascending order but not for the whole table, only within each experiment A, B, C...&lt;/P&gt;&lt;P&gt;and get a table like this:&lt;/P&gt;&lt;P&gt;EXP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Measurement Y&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YA1&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YA2&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YA3&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YB1&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YB2&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YB3&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;(where YA1&amp;lt;YA3&amp;lt;YA3 but YB1 could be anything either bigger or smaller than YA3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any advice!&lt;/P&gt;&lt;P&gt;Oh, and I'd like to include this into a script I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 23:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113065#M23329</guid>
      <dc:creator>Nico_jmp</dc:creator>
      <dc:date>2013-04-18T23:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: two level sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113066#M23330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc Sort data = test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by measurement_Y exp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is simple or i am not to understand your requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Urvish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 13:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113066#M23330</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2013-04-19T13:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: two level sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113067#M23331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps Im missing something but a a standard proc sort data=your table; by exp measurementY; run; should do what you seek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 13:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113067#M23331</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-04-19T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: two level sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113068#M23332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Eric pointed out, there is fairly straightforward solution. However, if we understand you wrong, and what you mean happen to be: 1. EXP stay the order as is 2. Sort measurement_Y with EXP. Then we will probably need some Hash(). If you do mean the latter, please let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 13:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113068#M23332</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-04-19T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: two level sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113069#M23333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I figured out how to do what I needed, was pretty straight forward as you said - Simply needed to have two arguments : By( :column1, :column2 )... Here's what I put in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Table( "dt" ) &amp;lt;&amp;lt; Sort(&lt;/P&gt;&lt;P&gt;&amp;nbsp; By( :Testing Comments , :MOR ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Order( Ascending, Ascending ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 23:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113069#M23333</guid>
      <dc:creator>Nico_jmp</dc:creator>
      <dc:date>2013-04-19T23:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: two level sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113070#M23334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks like JMP code to me.&lt;/P&gt;&lt;P&gt;You may be better posting these types of question in a JMP forum instead. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 00:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/two-level-sort/m-p/113070#M23334</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-20T00:58:40Z</dc:date>
    </item>
  </channel>
</rss>

