title: How to sort a multidimensional array in jquery by one field?
body: <p>I have this array in jquery:</p>
  
  <pre><code>var myArray = new Array();
  myArray[1] = new Array();
  myArray[2] = new Array();
  myArray[3] = new Array();
  myArray[4] = new Array();
  myArray[5] = new Array();
  </code></pre>
  
  <p>The element <code>myArray[x][1]</code> (x can be 1 to 5) contains a numeric value (a price) and the element <code>myArray[x][2]</code> another numeric value (an identifier). I need to order the array by the value of <code>myArray[x][1]</code> (the price) without separating every price from his identifier (his <code>[x][2]</code>).</p>
  
  <p>How do i?</p>