sortKey(array, key) {
return array.sort(function(a, b) {
var x = a[key]
var y = b[key]
return x - y
})
},
// intgroup升序
this.sortKey(this.mainForm.costexecutedetailList, 'intgroup')
标签:return,数组,sortKey,intgroup,var,key,某个,array,排序
来源: https://www.cnblogs.com/hellofangfang/p/13557762.html