title: How to sort array by date
body: <p>Here is my array</p>
  
  <pre><code>arr=[
  {
      date:'2017-06-14 14:03:49'
  },
  {
      date:'2017-04-20 10:25:32'
  },
  {
      date:'2017-06-02 15:57:16'
  },
  {
      date:'2017-06-02 17:52:05'
  },
  {
      date:'2017-06-02 21:47:13'
  },
  {
      date:'2017-06-14 14:01:31'
  }
  ]
  </code></pre>
  
  <p>I need sort an array by date.</p>
  
  <p>How can i do this,</p>
  
  <p>Kindly advice me,</p>
  
  <p>Thanks</p>