Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zandercymatics committed Dec 10, 2024
1 parent c7c83cf commit 5d22876
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/registrar/utility/csv_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ def get_model_annotation_dict(cls, request=None, **kwargs):
)
.values(*shared_columns)
)

# Adding a order_by increases output predictability.
# Doesn't matter as much for normal use, but makes tests easier.
# We should also just be ordering by default anyway.
members = permissions.union(invitations).order_by("email_display")
return convert_queryset_to_dict(members, is_model=False)

Expand Down

0 comments on commit 5d22876

Please sign in to comment.