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.

sort array items in php not case sensitive letters


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -