Commit 904588a5 authored by Taylor Otwell's avatar Taylor Otwell

Add default value to order_by direction.

parent 0beec683
......@@ -418,7 +418,7 @@ class Query {
* @param string $direction
* @return Query
*/
public function order_by($column, $direction)
public function order_by($column, $direction = 'asc')
{
$this->orderings[] = $this->wrap($column).' '.strtoupper($direction);
return $this;
......
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