def attrib_key(x: str) -> str:
	"""
	Sorts attributes first, then everything else.

	Useful as key for sorted() function when sorting SubNodes/Attributes.

	:param str x: The attribute to input
	:return: Either x.lower() or ("0000" + x.lower())
	"""
	if x.startswith("Attribute - "):
		return "0000".join(x.lower())
	else:
		return x.lower()