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
|
* @param string $direction
|
||||||
* @return Query
|
* @return Query
|
||||||
*/
|
*/
|
||||||
public function order_by($column, $direction)
|
public function order_by($column, $direction = 'asc')
|
||||||
{
|
{
|
||||||
$this->orderings[] = $this->wrap($column).' '.strtoupper($direction);
|
$this->orderings[] = $this->wrap($column).' '.strtoupper($direction);
|
||||||
return $this;
|
return $this;
|
||||||
|
|
Loading…
Reference in New Issue