original_string: public function sort( bool $desc = false )
  	{
  		$items = $this->items;
  		asort($items);
  		if($desc)
  		{
  			$items = array_reverse($items, true);
  		}
  		return new static($items);
  	}
code: public function sort( bool $desc = false )
  	{
  		$items = $this->items;
  		asort($items);
  		if($desc)
  		{
  			$items = array_reverse($items, true);
  		}
  		return new static($items);
  	}
code_tokens: public function sort ( bool $ desc = false ) { $ items = $ this -> items ; asort ( $ items ) ; if ( $ desc ) { $ items = array_reverse ( $ items , true ) ; } return new static ( $ items ) ; }
docstring: Sort an collection and maintain index association
  
  @param bool $desc in reverse order
  @return static
docstring_tokens: Sort an collection and maintain index association