sonata-project/SonataAdminBundle — Issue #489: filter field sorting
Author: vazgen
Created: 2012-01-11 07:51:35+00:00
State: open

Hello,
I am trying to sort filter filed that is related to user entity. I have tried to do it with '_sort_by' but it does not work. It always sort my ID.

$datagridMapper
->add('user', null, array('_sort_by' => 'username'), null);

Thanks.