title: AS3: Sort Two Fields
body: <p>PLEASE NEED HELP
  This is what I'm doing:</p>
  
  <pre><code>var my_array_W:Array = new Array();
  my_array_W.push({cor:Acorrect, tem:AnewTime, tab: "TB_A", nom:Aoseasnnombre});
  my_array_W.push({cor:Bcorrect, tem:BnewTime, tab: "TB_B", nom:Boseasnnombre});
  my_array_W.push({cor:Ccorrect, tem:CnewTime, tab: "TB_C", nom:Coseasnnombre}); 
  my_array_W.push({cor:Dcorrect, tem:DnewTime, tab: "TB_D", nom:Doseasnnombre});
  my_array_W.push({cor:Ecorrect, tem:EnewTime, tab: "TB_E", nom:Eoseasnnombre});
  my_array_W.push({cor:Fcorrect, tem:FnewTime, tab: "TB_F", nom:Foseasnnombre});
  </code></pre>
  
  <p>This Output:</p>
  
  <pre><code>[tab] |  [cor]  |        [tem]
   TB_A      3          8.6877651541
   TB_B      4         12.9287651344
   TB_C      1       6199.334999999999923
   TB_D      4         33.6526718521
   TB_E      4         31.90468496844
   TB_F      1          6.334999999923
  </code></pre>
  
  <p>So then I sort:</p>
  
  <pre><code>my_array_W.sortOn("tem", Array.NUMERIC);
  my_array_W.sortOn("cor", Array.NUMERIC | Array.DESCENDING);
  </code></pre>
  
  <p>And Geting this T_T :</p>
  
  <pre><code>[tab] |  [cor]  |        [tem]
   TB_E      4         31.90468496844
   TB_D      4         33.6526718521
   TB_B      4         12.9287651344
   TB_A      3          8.6877651541
   TB_F      1         31.90468496844
   TB_C      1       6199.334999999999923
  </code></pre>
  
  <p>I just wanna sort a Winner Table by Time(the less) and Correct(the high) </p>
  
  <p>So the Winner is the One who make more correct answers in less time.</p>
  
  <p>I really try so hard to get a sort like this:</p>
  
  <pre><code>[tab] |  [cor]  |        [tem]
   TB_B      4         12.9287651344
   TB_E      4         31.90468496844
   TB_D      4         33.6526718521
   TB_A      3          8.6877651541
   TB_F      1          6.334999999923
   TB_C      1       6199.334999999999923
  </code></pre>
  
  <p>But couldn't achieve it</p>