sortFunction given a and b as is, filterFunction is given string
Opened this issue · 0 comments
Hey, thanks so much for the work on this project, it's a charm.
I have one question regarding implementation:
If one provides a column a sortFunction
that function is sent a
and b
(left
and right
) exactly how the values have been given (
reactable/src/reactable/table.jsx
Lines 325 to 329 in 8e386ac
On the other hand if one provides a column a filterFunction
that function is sent contents
a string
, always (
reactable/src/reactable/table.jsx
Line 280 in 8e386ac
Is there a reason for this difference? It would be great to preserve contents
' type to match sortFunction
, that way you have more of the original information to test your filter function on.