def portrait(pagesize):
    """
	Returns the given pagesize in portrait orientation
	
	:param pagesize:
	:type pagesize:
	
	:return:
	:rtype:
	"""
    a, b = pagesize
    if a >= b:
        return b, a
    else:
        return a, b
