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

This commit is contained in:
Taylor Otwell
2011-08-12 20:16:45 -05:00

View File

@@ -418,7 +418,7 @@ class Query {
* @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;