Browse Source

Merge branch 'develop' of github.com:laravel/laravel into develop

Taylor Otwell 13 years ago
parent
commit
19de53ea3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/db/query.php

+ 1 - 1
system/db/query.php

@@ -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;