function QueryInterface::sort

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::sort()
  2. 10 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::sort()
  3. 11.x 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\Query

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.