jquery - Symfony 2 findBy order result case insensitive -
$this->get('bundle_name.entity_name.service')->findby(array(), array('name' => 'asc'));
this gives following result when displaying names:
a
b
c
b
how can order result case insensitive? result when displaying names:
b
b
c
your service looks repository. data layout doesn't have that.
so best solution overide findby method , add natcasesort()
reorder entities.
Comments
Post a Comment