public function apply(Builder $builder, Model $model): void
    {
        $builder->orderBy(self::NAME_ATTRIBUTE);
    }
public function apply(Builder $builder, Model $model): void
    {
        $builder->orderBy(self::NAME_ATTRIBUTE);
    }
public function apply ( Builder $ builder , Model $ model ) : void { $ builder -> orderBy ( self :: NAME_ATTRIBUTE ) ; }
Apply the sort by name scope to a given Eloquent query builder.

@param  Builder $builder Builder to attach query scope to
@param  Model $model Queried model

@return void
Apply the sort by name scope to a given Eloquent query builder .