this.tableData = this.compar(this.tableData, 'name');
compar(array, key) {
return array.sort(function (a, b) {
const x = a[key];
const y = b[key];
return x.localeCompare(y);
});
},
this.tableData = this.compar(this.tableData, 'name');
compar(array, key) {
return array.sort(function (a, b) {
const x = a[key];
const y = b[key];
return x.localeCompare(y);
});
},