I have a data like,
option = [
{
"field": "bac",
"title": "BAC",
"hidden": true
},
{
"field": "vm",
"title": "VM",
"hidden": false
},
{
"field": "cad",
"title": "CAD",
"hidden": true
},
{
"field": "boom",
"title": "BOOM",
"hidden": true
}
];
Now i have to sort based on title, can someone help me how do i do that?
I tried like,
_.each(option, function(e)){
arr.push(e.title);
}
arr.sort();
now getting every object and arranging, is that anyway to get this done more precise..
Thanks,