silverstripe-scienceninjas/sapphire — comment on commit e851a9ff6634266e204dc6948cef534f50a2e637
File:  line 0
By sminnee:

In the other commit I've suggested removing support for this SQL fragment syntax. I guess this should be this instead?

$dir = $this->request->getVar('dir');
$sort = array($this->request->getVar('sort') => $dir ? $dir : 'ASC');