Neos\Flow\Persistence\Generic\Query::setOrderings PHP Method

setOrderings() public method

Sets the property names to order the result by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
public setOrderings ( array $orderings ) : Neos\Flow\Persistence\QueryInterface
$orderings array The property names to order by
return Neos\Flow\Persistence\QueryInterface
    public function setOrderings(array $orderings)
    {
        $this->orderings = $orderings;
        return $this;
    }