compare style on collection

This commit is contained in:
Thomas Krijnen
2020-09-01 12:21:39 +02:00
parent 91517a9dd1
commit 6685aa16d3
+6 -1
View File
@@ -219,7 +219,12 @@ namespace {
return a_lt_b;
}
// Vectors equal, compare matrix (in case of mapped items).
return compare(a.matrix, b.matrix);
int matrix_order = less_to_order(a.matrix, b.matrix);
if (matrix_order == 0) {
return compare(a.surface_style, b.surface_style);
} else {
return matrix_order == -1;
}
} else {
return a.children.size() < b.children.size();
}