protected function applySort()
    {
        $sort = $this->getActualSort();

        if ( ! $sort) return $this;

        $criteria = $this->getModelSortCriteria();

        if ( ! $criteria) return $this;

        $this->getModelRepository()->pushCriteria($criteria, CriteriaKey::ORDER);

        return $this;
    }
protected function applySort()
    {
        $sort = $this->getActualSort();

        if ( ! $sort) return $this;

        $criteria = $this->getModelSortCriteria();

        if ( ! $criteria) return $this;

        $this->getModelRepository()->pushCriteria($criteria, CriteriaKey::ORDER);

        return $this;
    }
protected function applySort ( ) { $ sort = $ this -> getActualSort ( ) ; if ( ! $ sort ) return $ this ; $ criteria = $ this -> getModelSortCriteria ( ) ; if ( ! $ criteria ) return $ this ; $ this -> getModelRepository ( ) -> pushCriteria ( $ criteria , CriteriaKey :: ORDER ) ; return $ this ; }
Applies active sorting to model repository.

@return $this
Applies active sorting to model repository .