title: how to sort a 2d array in Apps script
body: <p>I have an array like this.
  asd = [[a,3],[b,1],[c,5],[d,2]];</p>
  
  <p>I want to sort it from the number resulting like,</p>
  
  <p>asd = [[a,5],[b,3],[c,2],[d,1]];</p>
  
  <p>Any one knows an apps script code?</p>