public function QueryInterface::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.
See also
sort()
1 method overrides QueryInterface::getSorts()
- Query::getSorts in src/
Query/ Query.php - Retrieves the sorts set for this query.
File
- src/
Query/ QueryInterface.php, line 401
Class
- QueryInterface
- Represents a search query on a Search API index.
Namespace
Drupal\search_api\QueryCode
public function &getSorts();