From a8ca60758110372ac69009e67613dab4bd3a23d7 Mon Sep 17 00:00:00 2001 From: MrMeeb Date: Wed, 14 Feb 2024 12:00:07 +0000 Subject: [PATCH] 4.38.3 --- app/app/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/app/models.py b/app/app/models.py index ac12b9c..59aa04e 100644 --- a/app/app/models.py +++ b/app/app/models.py @@ -908,7 +908,11 @@ class User(Base, ModelMixin, UserMixin, PasswordOracle): return sub def verified_custom_domains(self) -> List["CustomDomain"]: - return CustomDomain.filter_by(user_id=self.id, ownership_verified=True).all() + return ( + CustomDomain.filter_by(user_id=self.id, ownership_verified=True) + .order_by(CustomDomain.domain.asc()) + .all() + ) def mailboxes(self) -> List["Mailbox"]: """list of mailbox that user own"""