title: SAS - reordering dataset variables based on month
body: <p>I have a SAS dataset whose column layout is like this:</p>
  
  <pre><code>Col1      Col2      Col3 
  A_jan2018 A_feb2018 A_mar2018 
  B_jan2018 B_feb2018 B_mar2018 
  C_jan2018 C_feb2018 C_mar2018
  </code></pre>
  
  <p>I need to re-order the columns that start with A or B or C in such a format --</p>
  
  <pre><code>Col1      Col2      Col3 
  A_Jan2018 B_Jan2018 C_Jan2018 
  A_Feb2018 B_Feb2018 C_Feb2018 
  A_Mar2018 B_Mar2018 C_Mar2018
  </code></pre>
  
  <p>The A,B,C prefixes need not be in any sorting order (meaning they can start with anything), but my requirement is to re-order them based on the month-year (meaning B_Jan2018 A_Feb2018 C_2018 is okay).</p>
  
  <p>Is there any way of achieving this in SAS?</p>