Fix #3644. Annotation matrixes properly calculated now for RCPs.

This commit is contained in:
Dion Moult
2023-08-30 18:15:10 +10:00
parent 0a69e3668e
commit b33131db44
7 changed files with 38 additions and 8 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ class IfcCsv:
reverse = sort_data["order"] == "DESC"
self.results = sorted(self.results, key=lambda x: natural_sort(x[i]), reverse=reverse)
else:
if include_global_id and len(list(self.results[0])) > 1:
if include_global_id and len(list(self.results)[0]) > 1:
self.results = sorted(self.results, key=lambda x: x[1])
elif not include_global_id:
self.results = sorted(self.results, key=lambda x: x[0])