I have the following object :
var jsonList = {
ref : "TEST1",
inventory : [
{
id : "a1",
date : 1401462270
},
{
id : "a2",
date : 1414836094
}
]
}
inventory array is not sorted by date, i would like to sort this array of object by date. The more recent in first position.
How can i do that ?