From 5d228768e6888bc15f77df9daef64af3bd7e7f09 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:12:41 -0700 Subject: [PATCH] add comment --- src/registrar/utility/csv_export.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/registrar/utility/csv_export.py b/src/registrar/utility/csv_export.py index 2e53dfef9..97feae20c 100644 --- a/src/registrar/utility/csv_export.py +++ b/src/registrar/utility/csv_export.py @@ -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)