I'm having issue with sorting with column alias, e.g. (Please don't bother with uncomplete builder statement. I guess you should get the point)
$builder = $this->modelsManager->createBuilder() ->columns(array('t.id', 'colalias' => 'COUNT(t.something)')) ->groupBy('t.id') ->orderBy('colalias DESC');
This throwed Scanning error as the order clause translated into
[colalias DESC]. I guess it should be
[colalias] DESC. Did I miss something or is this a bug with phalcon 2.0.8?
FYI, orderBy without stating ASC/DESC work just fine:
Thanks in advance.