You are here

public function SearchApiViewsQuery::sort in Search API 7

File

contrib/search_api_views/includes/query.inc, line 675
Contains SearchApiViewsQuery.

Class

SearchApiViewsQuery
Views query class using a Search API index as the data source.

Code

public function sort($field, $order = 'ASC') {
  if (!$this->errors) {
    $this->query
      ->sort($field, $order);
  }
  return $this;
}