original_string: public function getSortedNodesBuilder($key = null, $direction = null, $type = null, $limit = null, $locale = null)
      {
          $builder = PublishedNode::translatedIn($locale)
              ->groupBy('nodes.id');
  
          if ($type)
          {
              $builder->withType($type);
          }
  
          if ($limit)
          {
              $builder->limit($limit);
          }
  
          return $builder->sortable($key, $direction);
      }
code: public function getSortedNodesBuilder($key = null, $direction = null, $type = null, $limit = null, $locale = null)
      {
          $builder = PublishedNode::translatedIn($locale)
              ->groupBy('nodes.id');
  
          if ($type)
          {
              $builder->withType($type);
          }
  
          if ($limit)
          {
              $builder->limit($limit);
          }
  
          return $builder->sortable($key, $direction);
      }
code_tokens: public function getSortedNodesBuilder ( $ key = null , $ direction = null , $ type = null , $ limit = null , $ locale = null ) { $ builder = PublishedNode :: translatedIn ( $ locale ) -> groupBy ( 'nodes.id' ) ; if ( $ type ) { $ builder -> withType ( $ type ) ; } if ( $ limit ) { $ builder -> limit ( $ limit ) ; } return $ builder -> sortable ( $ key , $ direction ) ; }
docstring: Gets node sortable builder
  
  @param string $key
  @param string $direction
  @param string $type
  @param int $limit
  @param string $locale
  @return Builder
docstring_tokens: Gets node sortable builder