I have collection like this:
child{length:3, models:array[3], _byId:Object}
I wanna sort models array, I use lodash like this:
var array_of_objects = new ListCollection();
var data = _.sortByOrder(array_of_objects.models, ['id'], ['asc']);
And I get result only:
[child, child, child]
How to sort models arrays with keep length and the Object.