Skip to content

Commit

Permalink
order by sort order and id
Browse files Browse the repository at this point in the history
  • Loading branch information
somewes committed Oct 30, 2023
1 parent e7ec5ec commit e1a9146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def get_membership_cache(self, group_ids=None, is_active=True):
if group_ids:
membership_queryset = membership_queryset.filter(entity_group_id__in=group_ids)

membership_queryset = membership_queryset.order_by('id')
membership_queryset = membership_queryset.order_by('sort_order', 'id')

membership_queryset = membership_queryset.values_list('entity_group_id', 'entity_id', 'sub_entity_kind_id')

Expand Down

0 comments on commit e1a9146

Please sign in to comment.