Add default value to order_by direction.
This commit is contained in:
parent
0beec68355
commit
904588a51a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue