Hi I'm trying to figure out how to sort this. Below is a sample of my array.
product_sort_arr = [
[{name:'Particle'},link:value}],
[{name:'Bio-Part112',link:value}],
[],
etc . . .
];
I hope you can visualize the sample.
so far I have tried using and it's still not working. Still trying to fix this. Any help would be great
product_sort_arr.sort(function(a, b) {
return a.name - b.name;
})
Expected return
product_sort_arr = [
[{name:'Bio-Part112'},link:value}],
[{name:'Particle',link:value}],
[],
etc . . .
];