title: Multidimensional array sort in AS3
body: <p>What would be the easiest way to do a multi sort in AS3. Something similar to array_multisort() in PHP... like this: <a href="https://stackoverflow.com/questions/5305594/sort-a-multidimentional-array-using-array-multisort">sort a multidimentional array using array_multisort</a></p>
  
  <p>What I have</p>
  
  <pre><code>var COUNTRIES:Array = [["AD","Andorra"],["AE","United Arab Emirates"],["AF","Afghanistan"],["AG","Antigua &amp; Barbuda"],["AI","Anguilla"]];
  </code></pre>
  
  <p>.. which looped outputs</p>
  
  <pre><code>Andorra
  United Arab Emirates
  Afghanistan
  Antigua &amp; Barbuda
  Anguilla
  </code></pre>
  
  <p>... what I need is to sort it against the second index of each, so I get</p>
  
  <pre><code>Afghanistan
  Andorra
  Anguilla
  Antigua &amp; Barbuda
  United Arab Emirates
  </code></pre>