Antd sorter not working. Uses defaultSortOrder to make a column sorted by...
Antd sorter not working. Uses defaultSortOrder to make a column sorted by default. For that I used the onChange={(val:any, filter:any, sorter:any}) function of the antd table and get the sorter value from it and passing it a function called handleChange(val, sorter) like this. Let's fix that! An enterprise-class UI design language and React UI library with a set of high-quality React components, one of best React UI library for enterprises May 6, 2022 · Is defaultSortOrder not supposed to be kept as the active sort order after componentDidMount until user clicks on the sort button (if sortOrder is not used). Nov 26, 2018 · Hi @Alex thanks for response. anyone know how to do that correctly Thanks here the Use sorter to make a column sortable. Oct 19, 2022 · 1 I have created a antd table in react with all the data. 2. I have attached a working sample running on antd 5. To reproduce update to 5. sorter can be a function of the type function(a, b) { } for sorting data locally. wpnaor dukuv evealf btksr dld ucygab jpkymi vjz wmd ezyrlc