I have javascript object like this,
var list = {
"you": [100,'x',67],
"me": [456,'xxx',68],
"foo": [7856,'yux',69],
"bar": [2,'xcv',45]
};
I am trying to sort it according to the first element in the value list. like this
var list = {
"foo": [7856,'yux',69],
"me": [456,'xxx',68],
"you": [100,'x',67],
"bar": [2,'xcv',45],
};
I couldn't find any resources, with similar implementation in java script.
can anyone help?