code: def alphabetize_attributes(self):
          
          self.attributes.sort(key=lambda name: (name == self.class_attr_name, name))
docs: Orders attributes names alphabetically, except for the class attribute, which is kept last.