0

sorting in my table is not working.

LeftIcon - sort, RightIcon - filter. https://codesandbox.io/s/purple-feather-phzm1j?file=/src/App.js - my project

I'm assuming due to the nesting in the data, how do I set this up?

Mafii
  • 7,227
  • 1
  • 35
  • 55
DoNegative
  • 21
  • 5

1 Answers1

0

It is related to nesting of data. You have two choices...

  1. Flatten your JSON to be more friendly to the built in sorting.

  2. Use sortFunction on the column to write a custom sort on how that column should be sorted.

Melloware
  • 10,435
  • 2
  • 32
  • 62