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