src/Alg/Sort/Insertion.php
protected static function swap( $list, $pos1, $pos2 )
	{
		$memory	= $list[$pos1];
		$list[$pos1] = $list[$pos2];
		$list[$pos2] = $memory;
		return $list;
	}
protected static function swap( $list, $pos1, $pos2 )
	{
		$memory	= $list[$pos1];
		$list[$pos1] = $list[$pos2];
		$list[$pos2] = $memory;
		return $list;
	}
protected static function swap ( $ list , $ pos1 , $ pos2 ) { $ memory = $ list [ $ pos1 ] ; $ list [ $ pos1 ] = $ list [ $ pos2 ] ; $ list [ $ pos2 ] = $ memory ; return $ list ; }
Swaps two Elements in List.
@access		protected
@static
@param		array		$list		List
@param		int			$pos1		Position of first Element
@param		int			$pos1		Position of second Element
@return		array
Swaps two Elements in List .