handleSorter函数方法
`
handleSorter(a, b) {
let dingdan = this.formRef.current.getFieldsValue()['dingdan'];
let rowData1 = dingdan[`table_row_${parseInt(a.key)}`]['table_type'];
let rowData2 = dingdan[`table_row_${parseInt(b.key)}`]['table_type'];
console.log(rowData1);
console.log(rowData2)
console.log('排序结果')
console.log(rowData2.localeCompare(rowData1, 'zh-CN'));
// return 1;
return rowData2.localeCompare(rowData1, 'zh-CN');
`
结果返回为-1或者1, 表格都没有反应
rowData1和rowData2是排序列的type(是中文的)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…