How can I sort a column if there is two values in the cells?
columnHelper.accessor('violations', {
id: 'violations',
header: () => <p>Violations</p>,
cell: (info) => (
<div>
<p>{info.getValue().count}</p>
<p>{info.getValue().percent}%</p>
</div>
),
}),
If there is a way, could you provide an example of an implementation?
sortingFns
and create a custom sorting function for violations column. Sorting Fns Docs. – Trottier