public function QueryInterface::sort in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::sort()
Parameters
$field: Name of a field.
string $direction:
$langcode: Language code (optional).
Return value
$this The called object.
1 method overrides QueryInterface::sort()
- QueryBase::sort in core/
lib/ Drupal/ Core/ Entity/ Query/ QueryBase.php
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ QueryInterface.php, line 159
Class
- QueryInterface
- Interface for entity queries.
Namespace
Drupal\Core\Entity\QueryCode
public function sort($field, $direction = 'ASC', $langcode = NULL);