public function setSortFields(array $sortFields)
    {
        $this->sortFields = [];

        foreach ($sortFields as $item) {
            $this->addSearchSort($item);
        }

        return $this;
    }
public function setSortFields(array $sortFields)
    {
        $this->sortFields = [];

        foreach ($sortFields as $item) {
            $this->addSearchSort($item);
        }

        return $this;
    }
public function setSortFields ( array $ sortFields ) { $ this -> sortFields = [ ] ; foreach ( $ sortFields as $ item ) { $ this -> addSearchSort ( $ item ) ; } return $ this ; }
Sets the "sortFields" of the Search.

@param SearchSort[] $sortFields

@return Search
Sets the sortFields of the Search .