original_string: public function sortBy( \Closure $callback, bool $save_keys = true )
  	{
  		$items = $this->items;
  		$save_keys ? uasort($items, $callback) : usort($items, $callback);
  		return new static($items);
  	}
code: public function sortBy( \Closure $callback, bool $save_keys = true )
  	{
  		$items = $this->items;
  		$save_keys ? uasort($items, $callback) : usort($items, $callback);
  		return new static($items);
  	}
code_tokens: public function sortBy ( \ Closure $ callback , bool $ save_keys = true ) { $ items = $ this -> items ; $ save_keys ? uasort ( $ items , $ callback ) : usort ( $ items , $ callback ) ; return new static ( $ items ) ; }
docstring: Sort an collection by values using a user-defined comparison function
  
  @param \Closure $callback
  @param bool $save_keys maintain index association
  @return static
docstring_tokens: Sort an collection by values using a user - defined comparison function