original_string: public function scopeSort(Builder $query, $column, $direction)
      {
          if (!in_array($column, $this->sortable)) {
              return $query;
          }
  
          return $query->orderBy($column, $direction);
      }
code: public function scopeSort(Builder $query, $column, $direction)
      {
          if (!in_array($column, $this->sortable)) {
              return $query;
          }
  
          return $query->orderBy($column, $direction);
      }
code_tokens: public function scopeSort ( Builder $ query , $ column , $ direction ) { if ( ! in_array ( $ column , $ this -> sortable ) ) { return $ query ; } return $ query -> orderBy ( $ column , $ direction ) ; }
docstring: Adds a sort scope.
  
  @param \Illuminate\Database\Eloquent\Builder $query
  @param string                                $column
  @param string                                $direction
  
  @return \Illuminate\Database\Eloquent\Builder
docstring_tokens: Adds a sort scope .