order alias.mailboxes

This commit is contained in:
Son NK 2020-06-10 22:32:00 +02:00
parent 9e2f1c5f9f
commit cadbe7d32b
1 changed files with 2 additions and 0 deletions

View File

@ -730,6 +730,8 @@ class Alias(db.Model, ModelMixin):
for m in self._mailboxes:
ret.append(m)
ret = sorted(ret, key=lambda mb: mb.email)
return ret
def mailbox_support_pgp(self) -> bool: