From a5cb8fdd4d6f4bb4f0fd251d3a0df428210160ff Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Tue, 1 Dec 2020 20:08:08 +0000
Subject: [PATCH] Make the order of addresses returned by
 gather_address_lists() consistent rather than randomly varying from
 invocation to invocation.  - Legacy-Id: 18725

---
 ietf/mailtrigger/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ietf/mailtrigger/utils.py b/ietf/mailtrigger/utils.py
index a1c28871e..2e998f437 100644
--- a/ietf/mailtrigger/utils.py
+++ b/ietf/mailtrigger/utils.py
@@ -39,7 +39,7 @@ def gather_address_lists(slug, skipped_recipients=None, create_from_slug_if_not_
     if skipped_recipients:
         cc = excludeaddrs(cc, skipped_recipients)
 
-    return AddrLists(to=list(to),cc=list(cc))
+    return AddrLists(to=sorted(list(to)),cc=sorted(list(cc)))
 
 def get_mailtrigger(slug, create_from_slug_if_not_exists, desc_if_not_exists):
     try: