public function Query::getSorts in Search API 8
Retrieves the sorts set for this query.
Return value
string[] An array specifying the sort order for this query. Array keys are the field IDs in order of importance, the values are the respective order in which to sort the results according to the field.
Overrides QueryInterface::getSorts
See also
sort()
File
- src/
Query/ Query.php, line 685
Class
- Query
- Provides a standard implementation for a Search API query.
Namespace
Drupal\search_api\QueryCode
public function &getSorts() {
return $this->sorts;
}