I have two tables with farily same names of the columns, usinng two different search models (both using ActiveDataProvider
's) so when I sort one by a column, the other gets affected as well.
I have tried setting this in my second GridView
:
'sorter' => [
'class' => 'yii\widgets\LinkSorter',
'sortParam' => 'sortB',
],
But with no avail.
EDIT: Sort param is a GET variable passed to server: ?sort=amount
, or ?param=1&sort=created_at
.