gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 932 forks source link

column option sortCompare is missing #1503

Open ShtiviGrin opened 4 years ago

ShtiviGrin commented 4 years ago

Expected Behavior

Providing a sortCompare callback to a column options (as described at the documentation).

Current Behavior

There's no actual sortCompare option: there is no reference at the declaration file and the callback is not called).

Your Environment

Tech Version
Material-UI 4.9.9
MUI-datatables 3.2.0
React 4.0.5
browser Chrome 84
patorjk commented 4 years ago

sortCompare was added in version 3.3.0

ShtiviGrin commented 4 years ago

sortCompare was added in version 3.3.0

Hello, So I don't know what is wrong. This is the code I used: image and it wasn't even called.

Also, check out this screenshot: image

Can't see it here as well...

Do you have any ideas? Thank you!

patorjk commented 4 years ago

Are you using the latest version of mui-datatables? I'd need a codesandbox to better understand what is happening. Here is an example:

https://codesandbox.io/s/muidatatables-custom-toolbar-forked-g5s6y?file=/index.js

alielkhateeb commented 4 years ago

@patorjk The sortCompare option is missing here

tsuz commented 3 years ago

Works for me on mui-datatables 3.7.4 codesandbox.io

Screen Shot 2021-01-13 at 12 52 47