**columns 排序**
const columns = [
{
key: 'createdate',
title: '创建时间',
dataIndex: 'createdate',
// defaultSortOrder: 'descend',
hideInSearch: true,
sorter: (a, b) => {
// 需要先转 换成时间戳
const aTime = new Date(a.createdate).getTime();
const bTime = new Date(b.createdate).getTime();
return aTime - bTime;
},
}
]