Barry Warsaw pushed to branch master at mailman / Mailman

Commits:
7e0e6f2b by Barry Warsaw at 2017-02-02T15:17:56-05:00
Sort the addresses for predictable results.

- - - - -
f403c53c by Barry Warsaw at 2017-02-02T20:23:33-05:00
Sort the addresses for predictable results.

- - - - -
9e82813c by Barry Warsaw at 2017-02-02T20:23:40-05:00
Merge branch 'sort-addresses' of gitlab.com:mailman/mailman into 
sort-addresses

- - - - -
8c117d9a by Barry Warsaw at 2017-02-03T05:29:16+00:00
Merge branch 'sort-addresses' into 'master'

Sort the addresses for predictable results

See merge request !243
- - - - -


1 changed file:

- src/mailman/rest/addresses.py


Changes:

=====================================
src/mailman/rest/addresses.py
=====================================
--- a/src/mailman/rest/addresses.py
+++ b/src/mailman/rest/addresses.py
@@ -58,7 +58,8 @@ class _AddressBase(CollectionMixin):
 
     def _get_collection(self, request):
         """See `CollectionMixin`."""
-        return list(getUtility(IUserManager).addresses)
+        return sorted(getUtility(IUserManager).addresses,
+                      key=attrgetter('original_email'))
 
 
 @public



View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/f9437b07e0fafff132f1c6d6567079986aed86e3...8c117d9a944976400801d3ced7e4c2b6b010b18b
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to