public function Criteria::orderBy

Set the ordering of the result of this criteria.

Keys are field and values are the order, being either ASC or DESC.

Parameters

array:

Return value

Criteria

See also

Criteria::ASC

Criteria::DESC

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Criteria.php, line 190

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

public function orderBy(array $orderings) {
  $this->orderings = $orderings;
  return $this;
}