title: JavaScript: Sort an nested array
body: <p>I have an nested array <strong>unsorted</strong> after sorting it should be <strong>sorted</strong> depending on 2nd item of sub-array</p>
  
  <pre><code>var unsorted = [["tag_17",0,4],["tag_18",13,18],["tag_435",6,11]];
  var sorted = [["tag_18",13,18], ["tag_435",6,11], ["tag_17",0,4]];
  </code></pre>