public function applyRelationSorts(string $relationName, string $alias, Builder $query)
    {
        foreach ($this->getRelationSorts($relationName) as $sorts) {
            $sorts->apply($query, $alias);
        }
    }
public function applyRelationSorts(string $relationName, string $alias, Builder $query)
    {
        foreach ($this->getRelationSorts($relationName) as $sorts) {
            $sorts->apply($query, $alias);
        }
    }
public function applyRelationSorts ( string $ relationName , string $ alias , Builder $ query ) { foreach ( $ this -> getRelationSorts ( $ relationName ) as $ sorts ) { $ sorts -> apply ( $ query , $ alias ) ; } }
Applies sorts Eloquent Query builder for relation

@param string  $relationName Relation name
@param string  $alias        SQL alias
@param Builder $query        Eloquent query builder

@return void
Applies sorts Eloquent Query builder for relation