<?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: proc sort in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670318#M79216</link>
    <description>Linguistic sort is a dictionary order meaning 10 -19 comes right after 1.</description>
    <pubDate>Sat, 18 Jul 2020 15:22:07 GMT</pubDate>
    <dc:creator>smantha</dc:creator>
    <dc:date>2020-07-18T15:22:07Z</dc:date>
    <item>
      <title>proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670315#M79214</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I have the following data set.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Golf_0-1595084098760.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47276i043A934A60BA1297/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Golf_0-1595084098760.png" alt="Golf_0-1595084098760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I sort the data based on the Capacity which is the string variable?&amp;nbsp; (I want to order descending capacity)&lt;/P&gt;
&lt;P&gt;I tried the following codes, but it provide the same output:&lt;/P&gt;
&lt;PRE&gt;proc sort data= stats2 SORTSEQ= LINGUISTIC  ;&lt;BR /&gt;by capacity;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thank You.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 14:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670315#M79214</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-07-18T14:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670316#M79215</link>
      <description>You're probably better off extracting the number out of your Capacity column using the scan function instead of trying to do a linguistic sort.</description>
      <pubDate>Sat, 18 Jul 2020 15:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670316#M79215</guid>
      <dc:creator>ketpt42</dc:creator>
      <dc:date>2020-07-18T15:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670318#M79216</link>
      <description>Linguistic sort is a dictionary order meaning 10 -19 comes right after 1.</description>
      <pubDate>Sat, 18 Jul 2020 15:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670318#M79216</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-07-18T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670321#M79217</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313878"&gt;@Golf&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just add the collating option NUMERIC_COLLATION=ON:&lt;/P&gt;
&lt;PRE&gt;proc sort data=stats2 sortseq=linguistic&lt;STRONG&gt;(numeric_collation=on)&lt;/STRONG&gt;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 15:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670321#M79217</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-07-18T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670322#M79218</link>
      <description>Thank you so much.&lt;BR /&gt;Bests,</description>
      <pubDate>Sat, 18 Jul 2020 15:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort/m-p/670322#M79218</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-07-18T15:39:44Z</dc:date>
    </item>
  </channel>
</rss>

