sort packages and build SVGElement Attributes