File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -729,7 +729,7 @@ def load_filtered_set_annotations(request) -> Response:
729
729
730
730
images = Image .objects .filter (image_set = imageset )
731
731
annotations = Annotation .objects .filter (image__in = images ,
732
- annotation_type__active = True ).order_by ('image_id ' ).select_related ()
732
+ annotation_type__active = True ).order_by ('image__name' , 'id ' ).select_related ()
733
733
if annotation_type_id > - 1 :
734
734
annotations = annotations .filter (annotation_type__id = annotation_type_id )
735
735
if verified :
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ def view_imageset(request, image_set_id):
415
415
all_annotation_types = AnnotationType .objects .filter (active = True )
416
416
annotations = Annotation .objects .filter (
417
417
image__in = images ,
418
- annotation_type__active = True ).order_by ("id" )
418
+ annotation_type__active = True ).order_by ('image__name' , 'id' )
419
419
annotation_types = AnnotationType .objects .filter (annotation__image__image_set = imageset , active = True ).distinct ()\
420
420
.annotate (count = Count ('annotation' ),
421
421
in_image_count = Count ('annotation' , filter = Q (annotation__vector__isnull = False )),
You can’t perform that action at this time.
0 commit comments