Newscoop\Service\Model\Search\ColumnOrder::order PHP Method

order() public method

Set this column to be ordered.
public order ( boolean $ascending ) : Newscoop\Service\Model\Search\Column
$ascending boolean If true than the column will be ordered asscending, if false descending.
return Newscoop\Service\Model\Search\Column This instance, used for chaining purposes.
    public function order($ascending)
    {
        if ($this->ascending === NULL) {
            // Added first time so we should also register this as a sor by column.
            $this->search->addOrderBy($this);
        }
        $this->ascending = $ascending;
        return $this;
    }