Hi.
I would like to sort my data in a Grid using a complex data type and also using editing with the grid. The issue is that the field I want to sort by is in a nested object like this:
[ { id: 123, channel: { id: 1, label: "test1" }, ... }, ... ]
So I would like to sort by channel.label. The issue is that I also use the edit capabilities of the Grid with this data and for editing the channel I use a dropdown which uses the id as key and the label as text of the dropdown but this is not the issue and editing works fine.
I have forked one of your Grid examples to demo my sorting issues with the Grid. As you can see there, I created my own sorting function but it does not work as expected. If you hit the column header multiple times, it only gets sorted once or twice and then not anymore. I guess there is something wrong in my sorting function, so if you could please let me know what I'm doing wrong there it would be great.
https://stackblitz.com/edit/react-qlfk8k-eqxmru
Thanks,
Bernd