'Antd table incorrect sorting on pagination

I have a Antd table. it displays correctly. sorted by date in descending order. But when I go to the second page of the table, I see the same data, but sorted in ascending order. I return to the first page and the data is sorted in ascending order. sorting happens on the client side

1page: enter image description here

2page: enter image description here

1page again: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source