默认情况下,react表排序区分大小写。
为了使其不敏感,我们必须编写一个自定义排序函数。
我喜欢来自https://github.com/react-tools/react-table/issues/335的答案。
这会有所帮助。
reactjs
reactjs ×1