We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab6ca1 commit 2f0fe36Copy full SHA for 2f0fe36
cvat/apps/annotation/annotation.py
@@ -322,7 +322,7 @@ def _get_frame(annotations, shape):
322
323
annotations = {}
324
data_manager = DataManager(self._annotation_ir)
325
- for shape in data_manager.to_shapes(self._db_task.size):
+ for shape in sorted(data_manager.to_shapes(self._db_task.size), key=lambda s: s.get("z_order", 0)):
326
_get_frame(annotations, shape).labeled_shapes.append(self._export_labeled_shape(shape))
327
328
for tag in self._annotation_ir.tags:
0 commit comments