Open yoiang opened 7 years ago
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 (https://github.com/glittershark/reactable/blob/8e386acbe60387dbdfc2f5d75c9cf0029929f97b/src/reactable/table.jsx#L325-L329)
sortFunction
a
b
left
right
On the other hand if one provides a column a filterFunction that function is sent contents a string, always (https://github.com/glittershark/reactable/blob/8e386acbe60387dbdfc2f5d75c9cf0029929f97b/src/reactable/table.jsx#L280)
filterFunction
contents
string
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.
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 senta
andb
(left
andright
) exactly how the values have been given (https://github.com/glittershark/reactable/blob/8e386acbe60387dbdfc2f5d75c9cf0029929f97b/src/reactable/table.jsx#L325-L329)On the other hand if one provides a column a
filterFunction
that function is sentcontents
astring
, always (https://github.com/glittershark/reactable/blob/8e386acbe60387dbdfc2f5d75c9cf0029929f97b/src/reactable/table.jsx#L280)Is there a reason for this difference? It would be great to preserve
contents
' type to matchsortFunction
, that way you have more of the original information to test your filter function on.