title: Sort array by date - javascript
body: <p>I want to sort an array of objects by date, but the problem is their date is in this format - <code>2014-07-17T13:49:12.767Z</code>.</p>
  
  <p>Here an example of one object in this array</p>
  
  <pre><code>{
    id: 578,
    creationDate: "2014-07-16T20:56:04.710Z",
    creationUser: "FCOUT",
    modificationDate: "2014-07-17T13:49:12.767Z",
    modificationUser: "FCOUT",
    name: "Regra Filipe",
    description: "Teste",
    type: "Message",
    regulation: null,
    structure: 1,
    deleted: false,
  }
  </code></pre>
  
  <p>I have to sort them by modification date or creation date!</p>