Skip to content

Commit

Permalink
for raw order by
Browse files Browse the repository at this point in the history
fixed #24
  • Loading branch information
cos800 committed Oct 1, 2016
1 parent ff6c631 commit 63866fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LessQL/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,11 @@ function orderBy( $column, $direction = "ASC" ) {

$clone = clone $this;

$clone->orderBy[] = $this->db->quoteIdentifier( $column ) . " " . $direction;
if ($direction===true) {
$clone->orderBy[] = $column;
}else{
$clone->orderBy[] = $this->db->quoteIdentifier( $column ) . " " . $direction;
}

return $clone;

Expand Down

0 comments on commit 63866fe

Please sign in to comment.