Hi, can i kindly ask for assistance regarding my problem. I have created a custom column in my CGridView that displays custom values.
'header' => $this->t('Likes'), 'name' => 'likes', 'value'=>'$data->getLikes()', 'sortable' => true,
Now, the ‘value’ gets its data from a custom function.
The table gets displayed without a problem, however, I would like to sort my table according to the highest value in my custom column, which in my case is the Likes Column.