diff --git a/coolamqp/framing/compilation/xml_tags.py b/coolamqp/framing/compilation/xml_tags.py
index 6397e946d48d24923c980b2af137b297097b5223..698929fe09db0daced303bb475291201358c577b 100644
--- a/coolamqp/framing/compilation/xml_tags.py
+++ b/coolamqp/framing/compilation/xml_tags.py
@@ -56,17 +56,6 @@ class Field(BaseObject):
         _docs
     ]
 
-class Class(BaseObject):
-    NAME = 'class'
-    FIELDS = [
-        _name,
-        _SimpleField('index', int),
-        _docs_with_label,
-        _ChildField('methods', 'method', Method, postexec=lambda q: sorted(q,
-            key=lambda m: (m.name.strip('-')[0], -len(m.response)))),
-        _ChildField('properties', 'field', Field)
-    ]
-
 
 class Domain(BaseObject):
     NAME = 'domain'
@@ -115,3 +104,15 @@ class Method(BaseObject):
             if field.basic_type in DYNAMIC_BASIC_TYPES:
                 return False
         return True
+
+class Class(BaseObject):
+    NAME = 'class'
+    FIELDS = [
+        _name,
+        _SimpleField('index', int),
+        _docs_with_label,
+        _ChildField('methods', 'method', Method, postexec=lambda q: sorted(q,
+            key=lambda m: (m.name.strip('-')[0], -len(m.response)))),
+        _ChildField('properties', 'field', Field)
+    ]
+