protected function insertTag(Tag $tag)
	{
		if (!$this->tagStackIsSorted)
		{
			$this->tagStack[] = $tag;
		}
		else
		{
			// Scan the stack and copy every tag to the next slot until we find the correct index
			$i = count($this->tagStack);
			while ($i > 0 && self::compareTags($this->tagStack[$i - 1], $tag) > 0)
			{
				$this->tagStack[$i] = $this->tagStack[$i - 1];
				--$i;
			}
			$this->tagStack[$i] = $tag;
		}
	}
protected function insertTag(Tag $tag)
	{
		if (!$this->tagStackIsSorted)
		{
			$this->tagStack[] = $tag;
		}
		else
		{
			// Scan the stack and copy every tag to the next slot until we find the correct index
			$i = count($this->tagStack);
			while ($i > 0 && self::compareTags($this->tagStack[$i - 1], $tag) > 0)
			{
				$this->tagStack[$i] = $this->tagStack[$i - 1];
				--$i;
			}
			$this->tagStack[$i] = $tag;
		}
	}
protected function insertTag ( Tag $ tag ) { if ( ! $ this -> tagStackIsSorted ) { $ this -> tagStack [ ] = $ tag ; } else { // Scan the stack and copy every tag to the next slot until we find the correct index $ i = count ( $ this -> tagStack ) ; while ( $ i > 0 && self :: compareTags ( $ this -> tagStack [ $ i - 1 ] , $ tag ) > 0 ) { $ this -> tagStack [ $ i ] = $ this -> tagStack [ $ i - 1 ] ; -- $ i ; } $ this -> tagStack [ $ i ] = $ tag ; } }
Insert given tag in the tag stack

@param  Tag  $tag
@return void
Insert given tag in the tag stack