Hey, I'm having some trouble implementing custom sorting. Say I have a component
const BigTable = (props) => {
let { data } = props
return (
<ReactTable
data={data}
columns={columns}
/>
)
}
If I had an age column, that was a string, and I wanted to use a function like (a, b) => parseInt(a) - parseInt(b) to sort the data. From the docs I've been trying to set the table to manual use onSortingChange, but I can't figure out how to use it properly. Any chance you could point me in the right direction?
If you want to fully control the sorting algorithm, you will need to treat the table as a server side setup. See https://react-table.js.org/?selectedKind=2.%20Demos&selectedStory=Server-side%20Data&full=0&down=0&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel
I may possibly make the sorting customizable more easily On Wed, Jan 25, 2017 at 12:45 AM Sam Simmons <notifications@github.com> wrote: