QueryInterface::sort

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);
doc_Drupal
2016-10-29 09:35:59
Comments
Leave a Comment

Please login to continue.