I want to sort an array of objects by date, but the problem is their date is in this format - 2014-07-17T13:49:12.767Z
.
Here an example of one object in this array
{
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,
}
I have to sort them by modification date or creation date!