Data table server side sorting

Hello, Attempting to get the desired operation out of server side datatable sorting I noted the documentation stated the following:
Now header clicking will trigger a server-side GET request with the following parameter: sort[package]=desc (data.php?sort[package]=desc), which allows sending:
In my testing this does hold true for the first column header that is clicked; however, if subsequent column headers are clicked to sort by a different column, the column names are added to the GET request array rather than replacing the previous. As a result the subsequent requests look like the following for example:
data.php?sort[col1]=desc&sort[col2]=desc&sort[col3]=asc
Is this the expected behaviour? I imagined sorting on only a single column and having that column name and sort 'direction' presented. Actually I've just noticed ALL the parameters of the GET request are duplicated - is this a known issue with v3.3.13
Thanks -SrvrSide

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion