Skip to content

Commit c1a518b

Browse files
committed
Merge branch 'main' of https://github.com/seeker25/sbc-auth
2 parents b4d7d61 + 67ea300 commit c1a518b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

auth-api/src/auth_api/models/membership.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def find_orgs_for_user(cls, user_id: int, valid_statuses=VALID_STATUSES) -> list
109109
.filter(cls.user_id == int(user_id or -1))
110110
.filter(cls.status.in_(valid_statuses))
111111
.filter(OrgModel.status_code.in_(VALID_ORG_STATUSES))
112+
.order_by(Membership.created)
112113
.all()
113114
)
114115

0 commit comments

Comments
 (0)