public QueryInterface::sort($field, $direction = 'ASC', $langcode = NULL)
Parameters
$field: Name of a field.
string $direction:
$langcode: Language code (optional).
Return value
\Drupal\Core\Entity\Query\QueryInterface The called object.
File
- core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 152
Class
- QueryInterface
- Interface for entity queries.
Namespace
Drupal\Core\Entity\Query
Code
public function sort($field, $direction = 'ASC', $langcode = NULL);
Please login to continue.