I want to order by the title value. This is a string. But when I use the orderBy() method of the phalcon query builder the array is not ordered properly like '-1, -2, -3, -10, -11, -12'. Is there a other way to order strings using the builder?
$Query = Options::query()->orderBy('title')->execute();
The array that I wan't order by the title:
array
0 =>
array
'id' => string '1'
'title' => string '-1'
1 =>
array
'id' => string '2'
'title' => string '-10'
2 =>
array
'id' => string '3'
'title' => string '-11'
3 =>
array
'id' => string '4'
'title' => string '-2'
4 =>
array
'id' => string '5'
'title' => string '-3'
5 =>
array
'id' => string '6'
'title' => string '-12'