How to sort order multiple columns using antd Table?

55 views Asked by At

I want to display the active sort button on 2 columns of the antd Table. When I click on the "Sort Users" option, the sort button of the "Books" column becomes deactivated. This is column of table

    {
      title: "Book",
      dataIndex: "books",
      sorter: true,
      sortDirections: ["descend"],
    },
    {
      title: "User",
      dataIndex: "user",
      sorter: true,
      sortDirections: ["descend"],
    }

enter image description here

How can I display both "Sort Books" and "Sort Users" buttons in an active state at the same time?

0

There are 0 answers