function SelectQueryExtender::orderBy

Overrides SelectQueryInterface::orderBy

2 calls to SelectQueryExtender::orderBy()
SearchQuery::execute in modules/search/search.extender.inc
Executes the search.
TableSort::orderByHeader in includes/tablesort.inc
Order the query based on a header array.

File

includes/database/select.inc, line 765

Class

SelectQueryExtender
The base extender class for Select queries.

Code

public function orderBy($field, $direction = 'ASC') {
    $this->query
        ->orderBy($field, $direction);
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.