title: Sorting a multidimensional array in javascript
body: <p>How would you sort a multidimensional array in JavaScript?</p>
  
  <p>I have an array full of arrays that contain two dates and a string. I need the main array sorted by one of the date arrays, is this possible?</p>
  
  <p>data stucture:</p>
  
  <pre><code>events = [
   { date 1, date 2, string },
   { date 2, date 2, string },
   ]
  </code></pre>