public function sort( bool $desc = false )
	{
		$items = $this->items;
		asort($items);
		if($desc)
		{
			$items = array_reverse($items, true);
		}
		return new static($items);
	}
public function sort( bool $desc = false )
	{
		$items = $this->items;
		asort($items);
		if($desc)
		{
			$items = array_reverse($items, true);
		}
		return new static($items);
	}
public function sort ( bool $ desc = false ) { $ items = $ this -> items ; asort ( $ items ) ; if ( $ desc ) { $ items = array_reverse ( $ items , true ) ; } return new static ( $ items ) ; }
Sort an collection and maintain index association

@param bool $desc in reverse order
@return static
Sort an collection and maintain index association