class SortOperation extends AbstractOperation (View source)

"sort" operation working on ContentRepository nodes.

Sorts nodes by specified node properties.

Properties

static protected string $shortName {@inheritdoc}

Methods

bool
canEvaluate(mixed $context)

{@inheritdoc}

void
evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

Details

bool canEvaluate(mixed $context)

{@inheritdoc}

We can only handle ContentRepository Nodes.

Parameters

mixed $context

Return Value

bool

void evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

First argument is the node property to sort by. Works with internal arguments (_xyz) as well. Second argument is the sort direction (ASC or DESC).

Parameters

FlowQuery $flowQuery

the FlowQuery object

array $arguments

the arguments for this operation.

Return Value

void

Exceptions

FlowQueryException