Skip to content

Commit a5cb8fd

Browse files
committed
Make the order of addresses returned by gather_address_lists() consistent rather than randomly varying from invocation to invocation.
- Legacy-Id: 18725
1 parent 8ebef27 commit a5cb8fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/mailtrigger/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def gather_address_lists(slug, skipped_recipients=None, create_from_slug_if_not_
3939
if skipped_recipients:
4040
cc = excludeaddrs(cc, skipped_recipients)
4141

42-
return AddrLists(to=list(to),cc=list(cc))
42+
return AddrLists(to=sorted(list(to)),cc=sorted(list(cc)))
4343

4444
def get_mailtrigger(slug, create_from_slug_if_not_exists, desc_if_not_exists):
4545
try:

0 commit comments

Comments
 (0)