title: SAS- Newcomer having getting proc freq to show 1 before 0
body: <p>I am trying to use ProcFreq to calculate sensitivity and specificity where 1 is my outcome. I need to get 1 in the upper left and 0 in the lower right. I have tried sorting but it didn't change. I would appreciate any suggestions. </p>
  
  <p>The code I am trying: </p>
  
  <pre><code>proc sort data=genes3;
       by descending A62 descending status2;
           run;
  
  Proc Freq data=genes3;
  Tables A62*Status2/ senspec;
  run; 
  </code></pre>
  
  <p>Screenshot of the results I am getting.<a href="https://i.stack.imgur.com/JhJKA.png" rel="nofollow noreferrer">Results</a></p>