how to sort a table in alphabetical order with antd [duplicate] how to sort a table in alphabetical order with antd [duplicate] reactjs reactjs

how to sort a table in alphabetical order with antd [duplicate]


You can use localeCompare()

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