Let's say I have an array of objects. I want to sort it by date, descending. How can I do that in javascript? This is the object i'm trying to sort through
[
{
"577": {
"id": "577",
"status": "",
"date": "09 January 2017",
},
"594": {
"id": "594",
"status": "",
"date": "01 January 2017",
},
"595": {
"id": "595",
"status": "",
"date": "02 January 2017",
},
"596": {
"id": "596",
"status": "",
"date": "03 January 2017",
}
}
]