original_string: protected function isFieldSortable(Builder $builder, $field)
      {
          $sortable = $this->_getSortableAttributes($builder);
  
          return in_array($field, $sortable) || in_array('*', $sortable);
      }
code: protected function isFieldSortable(Builder $builder, $field)
      {
          $sortable = $this->_getSortableAttributes($builder);
  
          return in_array($field, $sortable) || in_array('*', $sortable);
      }
code_tokens: protected function isFieldSortable ( Builder $ builder , $ field ) { $ sortable = $ this -> _getSortableAttributes ( $ builder ) ; return in_array ( $ field , $ sortable ) || in_array ( '*' , $ sortable ) ; }
docstring: Check if field is sortable for given model.
  
  @param Builder $builder query builder
  @param string $field field name
  
  @return bool
docstring_tokens: Check if field is sortable for given model .