SortOperation
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.
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).