public function QueryInterface::sort in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
\Drupal\Core\Entity\Query\QueryInterface 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 135 - Contains \Drupal\Core\Entity\Query\QueryInterface.
Class
- QueryInterface
- Interface for entity queries.
Namespace
Drupal\Core\Entity\QueryCode
public function sort($field, $direction = 'ASC', $langcode = NULL);