move sorting to one function
SAML tab in IdP metadata editor, sortAttributes function