Add default value to order_by direction.

This commit is contained in:
Taylor Otwell 2011-08-12 08:47:31 -05:00
parent 0beec68355
commit 904588a51a
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ private function dynamic_where($method, $parameters)
* @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;