Commit 0446c476 authored by deadem's avatar deadem

allow to sort by $meta-projection

parent 979dc801
......@@ -385,7 +385,10 @@ class Builder extends BaseBuilder {
*/
public function orderBy($column, $direction = 'asc')
{
$direction = (strtolower($direction) == 'asc' ? 1 : -1);
if (is_string($direction))
{
$direction = (strtolower($direction) == 'asc' ? 1 : -1);
}
if ($column == 'natural')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment