0👍
Yes, this is the way to do this. You can use something like lodash:
computed: {
computedList: function () {
return _.sortBy(this.list, [function(o) { return o.id; }]);
}
}});
Source:stackexchange.com
0👍
Yes, this is the way to do this. You can use something like lodash:
computed: {
computedList: function () {
return _.sortBy(this.list, [function(o) { return o.id; }]);
}
}});