more rna naming edits
[blender.git] / source / blender / makesrna / rna_cleanup / rna_cleaner.py
index f623b1c673d33ca6a46ec2b36c8f29b0f74cfe27..5eac1d295e8e172c4b12d2f9289080cf1c1ba8aa 100755 (executable)
@@ -195,8 +195,8 @@ def sort(props_list, sort_priority):
     """
 
     # order based on the i-th element in lists
-    if sort_priority == "class.from":
-        props_list = sorted(props_list, key=lambda p: (p[2], p[3]))
+    if sort_priority == "class.to":
+        props_list = sorted(props_list, key=lambda p: (p[2], p[4]))
     else:
         i = sort_choices.index(sort_priority)
         if i == 0: