I have an Admin class which has this definition of listFields:
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('type')
->add('created_at', 'datetime')
->add('updated_at', 'datetime')
->add('created_by')
->add('updated_by')
->add('is_active')
->add('is_deleted')
->add('_action', 'actions',
array(
'actions' => array(
'view' => array(),
'edit' => array(),
'delete' => array()
)
))
;
}
Only the "type" column is sortable - IE, when you hover over the table header for "Type" you see an asc/desc arrow and can click to re-order the rows based on this column.
How do I get that to show up on more columns?
I tried adding sortable=true but then it's trying to join to another Entity.