You are here

public function SearchApiQuery::getSort in Search API 7

Retrieves the sorts set for this query.

Return value

array An array specifying the sort order for this query. Array keys are the field names in order of importance, the values are the respective order in which to sort the results according to the field.

Overrides SearchApiQueryInterface::getSort

See also

sort()

File

includes/query.inc, line 784
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQuery
Provides a standard implementation of the SearchApiQueryInterface.

Code

public function &getSort() {
  return $this->sort;
}