In my antd table , one of the column is boolean. I want to sort that column. How to do that?
sorter: (a, b) => a.isPayment.localeCompare(b.isPayment),
render: (val)=><div className="text_overlap">{val ? 'Yes':'No'}</div>
I guess localeCompare works only for string.