diff --git a/src/app/molecules/sso-buttons/SSOButtons.jsx b/src/app/molecules/sso-buttons/SSOButtons.jsx index af6cb927..312a1650 100644 --- a/src/app/molecules/sso-buttons/SSOButtons.jsx +++ b/src/app/molecules/sso-buttons/SSOButtons.jsx @@ -54,7 +54,10 @@ function SSOButtons({ homeserver }) {
{identityProviders // Sort by alphabetical order - .sort((idp, idp2) => !!idp.imageSrc && idp.name > idp2.name) + .sort((idp, idp2) => { + if (typeof idp.imageSrc !== 'string') return -1; + return idp.name.toLowerCase() > idp2.name.toLowerCase() ? 1 : -1; + }) .map((idp) => (