diff --git a/django/sp_sso/saml/utils.py b/django/sp_sso/saml/utils.py index e0988cb..4fa6d6c 100644 --- a/django/sp_sso/saml/utils.py +++ b/django/sp_sso/saml/utils.py @@ -114,6 +114,7 @@ def ldap_get_attribute_from_subtree_nodes(subtree_base, filter, attribute): description = node_data.get('description', [_('No description')])[0] choices.append((attribute_value, description)) + choices.sort(key=lambda x: unicode(x[1], 'utf-8')) return choices def ldap_terminate(l):