If I have gsp file with a table using g:sortableColumn the first time in the link to sort has order=asc
If I click on it, it changes to order=desc
That’s the expected behavior.
If I move the table to another GSP and include it the order is always “asc”
So this works when in the file:
**<table><thead>
<g:sortableColumn property="table.description"
title="Description"/>
</thead/></table>**
`
But when moved the same code to table.gsp and included in the file instead:
** <g:include view="table.gsp"/>**
`
The order is always “asc” after the column is clicked on, but other wise things work fine.
It would appear I need to pass something to “table.gsp”, but stuck as to what as I expected to change to “Desc” even when I included it.
Tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.