I am trying to sort an array of arrays of objects by id.
There are lots of data in the object, but I pasted only the relevant.
It works in small array, but not in big.
http://codepen.io/anon/pen/EZOoKG?editors=1010
This is what I tried:
dic = dic.sort(function(a,b){
let aId = a[0].id;
let bId = b[0].id;
return bId > aId;
});
Thanks