title: How to sort array of dates in Jquery?
body: <p>I have an array of dates as below:</p>
  
  <pre><code>var unavailableDates = ["31-5-2014", "1-6-2014", "2-6-2014", "3-6-2014", "26-5-2014", "27-5-2014", "28-5-2014", "29-5-2014"];
  </code></pre>
  
  <p>How can I sort this array without changing the date format?</p>