src/Search.php
public function addSort(BuilderInterface $sort)
    {
        $this->getEndpoint(SortEndpoint::NAME)->add($sort);

        return $this;
    }
public function addSort(BuilderInterface $sort)
    {
        $this->getEndpoint(SortEndpoint::NAME)->add($sort);

        return $this;
    }
public function addSort ( BuilderInterface $ sort ) { $ this -> getEndpoint ( SortEndpoint :: NAME ) -> add ( $ sort ) ; return $ this ; }
Adds sort to search.

@param BuilderInterface $sort

@return $this
Adds sort to search .