How can I use multi-column sorting?

I have a custom API that allows filtering by multiple columns simultaneously. The problem is that in my table, I can only sort by one column. Column A sorts correctly, but if I sort by Column B, Column A loses its sorting.

I’ve read about setSort or sortBy, but it’s not entirely clear. I need to add three sort parameters and send the values for each column along with their respective asc or desc order. How can I do this? Thank you!

Hi @Agustin_Reynaud, have you tried holding Shift button and clicking the additional columns to sort by?

1 Like

Yep! :blush:

And here's the syntax if you want to set the sort in a script or Javascript query:

1 Like