original_string: public function sort(callable $callback = null, $desc = false)
      {
          if (!$callback || !\is_callable($callback)) {
              return $this;
          }
  
          $items = $this->items;
          uasort($items, $callback);
  
          return !$desc ? $items : array_reverse($items, true);
      }
code: public function sort(callable $callback = null, $desc = false)
      {
          if (!$callback || !\is_callable($callback)) {
              return $this;
          }
  
          $items = $this->items;
          uasort($items, $callback);
  
          return !$desc ? $items : array_reverse($items, true);
      }
code_tokens: public function sort ( callable $ callback = null , $ desc = false ) { if ( ! $ callback || ! \ is_callable ( $ callback ) ) { return $ this ; } $ items = $ this -> items ; uasort ( $ items , $ callback ) ; return ! $ desc ? $ items : array_reverse ( $ items , true ) ; }
docstring: Sorts elements from the list and returns a copy of the list in the proper order
  
  @param callable|null $callback
  
  @param bool          $desc
  
  @return $this|array
  @internal param bool $asc
docstring_tokens: Sorts elements from the list and returns a copy of the list in the proper order