title: SAS- how to do ASCENDING order when concatenating
body: <p>How do you sort the values by ascending order when concatenating for SAS?</p>
  
  <p>eg. In this example I am trying to acsend values for aeacnoth1_std1, aeacnoth2_std, etc.....</p>
  
  <pre><code>if cmiss( aeacnoth1_std, aeacnoth2_std)=0 
      then aeacolst=strip(aeacnoth1_std)||','||strip(aeacnoth2_std);
   if cmiss( aeacnoth1_std, aeacnoth2_std, aeacnoth3_std)=0 
      then aeacolst=strip(aeacnoth1_std)||','||strip(aeacnoth2_std)||','||strip(aeacnoth3_std);
   if cmiss( aeacnoth1_std, aeacnoth2_std, aeacnoth3_std, aeacnoth4_std)=0 
      then aeacolst=strip(aeacnoth1_std)||','||strip(aeacnoth2_std)||','||strip(aeacnoth3_std)||','||strip(aeacnoth4_std);
  </code></pre>