Sortable Headers dont work

It works when i edit server action file in editor and edit “orders” param like this:

*** Normally we can not edit “dir” value to any $_GET param. Only while opening in editor we can set.

Sorry it’s not really clear what do you mean with your post.
What and where is not working? What and why do you edit and what values do you change to what?

After setup like this(screen shot) when click to any header it is not sorted but it creates query string like this: sort=eposta&dir=asc.

so i edit server action file (upper) like that it works now. Bug is: it only works when manually edit server action file.

no, it’s not a bug and you should not edit the server action.
The problem with sorting not working is you add * table columns which is not supported for security reasons.
It will work when you select the columns you need in the query builder and add them.

3 Likes

What you have edited in your server action file is not very clear. You should have posted a before and after screenshot.

The issue here could also be the fact that you are setting order fields in the query itself, and then also trying to sort by the same field from the UI. In my experience, you cannot have any sorting fields in the query if you need to use the sorting from the ‘SORT’ param.

Maybe worth adding a paragraph in the table generator dialog to explain this when you enable sortable headers?

6 Likes