Skip to content Skip to sidebar Skip to footer

How To Sort A Table In Alphabetical Order With Antd

I want to filter the column in alphabetical order here is the code to filter by the size how to do thank you const columns = [{ title: 'First Name', dataIndex: 'first_n

Solution 1:

You can use localeCompare()

sorter: (a, b) => a.first_name.localeCompare(b.first_name);

Post a Comment for "How To Sort A Table In Alphabetical Order With Antd"