src/Node.php
public function scopeSortedBySourceAttribute(Builder $query, $attribute, $direction = 'ASC')
    {
        return $this->orderQueryBySourceAttribute($query, $attribute, $direction);
    }
public function scopeSortedBySourceAttribute(Builder $query, $attribute, $direction = 'ASC')
    {
        return $this->orderQueryBySourceAttribute($query, $attribute, $direction);
    }
public function scopeSortedBySourceAttribute ( Builder $ query , $ attribute , $ direction = 'ASC' ) { return $ this -> orderQueryBySourceAttribute ( $ query , $ attribute , $ direction ) ; }
Sorts by source attribute

@param Builder $query
@param string $attribute
@param string $direction
@return Builder
Sorts by source attribute