diff --git a/girder_annotation/girder_large_image_annotation/models/annotationelement.py b/girder_annotation/girder_large_image_annotation/models/annotationelement.py index 46d22c6aa..dcd0d809f 100644 --- a/girder_annotation/girder_large_image_annotation/models/annotationelement.py +++ b/girder_annotation/girder_large_image_annotation/models/annotationelement.py @@ -63,16 +63,22 @@ def initialize(self): ('bbox.lowx', SortDir.DESCENDING), ('bbox.highx', SortDir.ASCENDING), ('bbox.size', SortDir.DESCENDING), - ], {}), + ], { + 'name': 'annotationBboxIdx' + }), ([ ('annotationId', SortDir.ASCENDING), ('bbox.size', SortDir.DESCENDING), - ], {}), + ], { + 'name': 'annotationBboxSizeIdx' + }), ([ ('annotationId', SortDir.ASCENDING), ('_version', SortDir.DESCENDING), ('element.group', SortDir.ASCENDING), - ], {}), + ], { + 'name': 'annotationGroupIdx' + }), ([ ('created', SortDir.ASCENDING), ('_version', SortDir.ASCENDING),