Merged changes in the trunk up to revision 30397.
[blender.git] / source / blender / python / doc / sphinx_doc_gen.py
index 9e667a4b7b2e76c57090a74860a2b5b3df04406b..7e4043c75ca18cc6a7b02307ac1c237a1b3b7a99 100644 (file)
@@ -565,10 +565,9 @@ def rna2sphinx(BASEPATH):
         fw("   %s\n\n" % struct.description)
         
         # properties sorted in alphabetical order
-        zip_props_ids = zip(struct.properties, [prop.identifier for prop in struct.properties])
-        zip_props_ids = sorted(zip_props_ids, key=lambda p: p[1])
-        sorted_struct_properties = [x[0] for x in zip_props_ids]
-        
+        sorted_struct_properties = struct.properties[:]
+        sorted_struct_properties.sort(key=lambda prop: prop.identifier)
+
         for prop in sorted_struct_properties:
             type_descr = prop.get_type_description(class_fmt=":class:`%s`")
             # readonly properties use "data" directive, variables properties use "attribute" directive