What antd table API provides is this
date: {
title: "Date",
dataIndex: 'date',
key: 'date',
width: 85,
showSorterTooltip: { target: 'full-header' },
sortDirections: ['descend'],
sorter: (a, b) => a.date - b.date,
},
and what it does is that it sorts data that is already fetched and in the table.
But I need to fetch data from API whenever sorting direction changes, so I need to somehow know whether user has selected the soring column or not. From what I see there is no way to do it with table API.
Any workarounds ?