antd Table排序问题

  {
        dataIndex: 'datasourceType',
        title: formatMessage({ id: 'datasource.type', defaultMessage: '数据源类型' }),
        sorter: (a, b) => a.datasourceType > b.datasourceType ? 1 : -1
   },

  

原文地址:https://www.cnblogs.com/lipu12281/p/13368078.html