Sort group members by id

This commit is contained in:
Jonathan Leung 2022-10-12 06:38:24 +00:00
parent f66f7c8f5a
commit 9f1cbafc5f
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class Group:
# to_dict() is usually called for display purposes, so get some more
# information to display
data['members'] = self.ldap_srv.get_display_info_for_users(self.members)
data['members'].sort(key=lambda member: member['uid'])
return data
def add_to_ldap(self):