I want to sort my list. I have this JSON,
{
"ships": [{
"Code": "s01",
"Quantity": "10",
"Desc": "Ship 1",
"Date": "Jul 01 2016"
},{
"Code": "s03",
"Quantity": "4",
"Desc": "Ship 2",
"Date": "Jul 03 2016"
},{
"Code": "s02",
"Quantity": "2",
"Desc": "Ship 4",
"Date": "Jul 02 2016"
}]
}
How can I sort it by Date, by Code, or Alphabetically?
I can use jQuery. I tried this code,
var element = ...;
element.Sort();
It is not working.