using sortOrder to sort table in descending order in ant design (using typescript)
colums is set as follows:
{
title: "",
dataIndex: "turnover",
key: "turnover",
sortOrder: "descend",
sorter: (a, b) => a.turnover - b.turnover,
},
error message:
Types of property "sortOrder" are incompatible.
Type" string" is not assignable to type""descend" | "ascend" | undefined".
the official website documents are described as follows: