I have a Json Object like this:
"value": {
"date": {
"2017-03-10": {
"0": {
"buy": 0,
"sell": 0
},
"1": {
"buy": 0,
"sell": 0
},
"2": {
"buy": 0,
"sell": 0
},
},
},}
I have all dates in: Multi_Obj["value"]["date"];
and if i use the command sort:
Multi_Obj["value"]["date"].sort(function(a, b) {
a = new Date(a.dateModified);
b = new Date(b.dateModified);
return a>b ? -1 : a<b ? 1 : 0;});
I have this result:
Uncaught TypeError: Multi_Obj.show_data.sort is not a function.
Please Help Me! :)