public function QueryInterface::sort

Parameters

$field: Name of a field.

string $direction:

$langcode: Language code (optional).

Return value

\Drupal\Core\Entity\Query\QueryInterface The called object.

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 123
Contains \Drupal\Core\Entity\QueryInterface.

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function sort($field, $direction = 'ASC', $langcode = NULL);