<?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: Sort a variable with two works in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405841#M3752</link>
    <description>&lt;P&gt;You can create a new variable which is just the week number and use that’s to sort.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also look into the collating sequence options within PROC sort.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 00:52:42 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-20T00:52:42Z</dc:date>
    <item>
      <title>Sort a variable with two works</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405822#M3747</link>
      <description>&lt;P&gt;I'm trying trying to sort: Week 2, Week 12, Week 16, Week 8, Week 4 in ascending order of week number, but could not get the order. Any suggestions please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 23:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405822#M3747</guid>
      <dc:creator>sasban</dc:creator>
      <dc:date>2017-10-19T23:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a variable with two works</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405831#M3748</link>
      <description>&lt;P&gt;it is not very clear what you want to achieve. if you can show sample input data and result you want, someone will be able to help you&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 00:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405831#M3748</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-10-20T00:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a variable with two works</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405833#M3749</link>
      <description>&lt;P&gt;It is not clear what type of variables you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming the variable is character then you will get it sorted like:&lt;/P&gt;
&lt;PRE&gt;'Week 12'
'Week 16'
'Week 2 '
'Week 4 '
'Week 8 '&lt;/PRE&gt;
&lt;P&gt;in order to get it in order of the week number, you need keep the number as a separate numeric variable&lt;/P&gt;
&lt;P&gt;to get it in order:&amp;nbsp; 2 4 8 12 16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 00:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405833#M3749</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-10-20T00:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a variable with two works</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405841#M3752</link>
      <description>&lt;P&gt;You can create a new variable which is just the week number and use that’s to sort.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also look into the collating sequence options within PROC sort.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 00:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Sort-a-variable-with-two-works/m-p/405841#M3752</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-20T00:52:42Z</dc:date>
    </item>
  </channel>
</rss>

