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; }