title: How to sort 2 dimensional array by column value?
body: <p>Can any one help me sort a 2 dimensional Array in JavaScript?</p>
  
  <p>It will have data in the following format:</p>
  
  <pre><code>[12, AAA]
  [58, BBB]
  [28, CCC]
  [18, DDD]
  </code></pre>
  
  <p>It should look like this when sorted:</p>
  
  <pre><code>[12, AAA]
  [18, DDD]
  [28, CCC]
  [58, BBB]
  </code></pre>
  
  <p>So basically, sorting by the first column. </p>
  
  <p>Cheers</p>