original_string: protected function defaultSort(Builder $query, array $options = [])
      {
          if (isset($this->sortProperty)) {
              $direction = $this->sortDirection === 1 ? 'DESC' : 'ASC';
              $query->orderBy($this->sortProperty, $direction);
          }
      }
code: protected function defaultSort(Builder $query, array $options = [])
      {
          if (isset($this->sortProperty)) {
              $direction = $this->sortDirection === 1 ? 'DESC' : 'ASC';
              $query->orderBy($this->sortProperty, $direction);
          }
      }
code_tokens: protected function defaultSort ( Builder $ query , array $ options = [ ] ) { if ( isset ( $ this -> sortProperty ) ) { $ direction = $ this -> sortDirection === 1 ? 'DESC' : 'ASC' ; $ query -> orderBy ( $ this -> sortProperty , $ direction ) ; } }
docstring: Order query by the specified sorting property
  @param  Builder $query
  @param  array  $options
  @return void
docstring_tokens: Order query by the specified sorting property