Commit 64c46697 authored by Jens Segers's avatar Jens Segers

Merge pull request #626 from deadem/master

allow to sort by $meta-projection
parents 7e09ee87 0446c476
......@@ -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