diff --git a/templates/selectidp-dropdown.php b/templates/selectidp-dropdown.php
index 27fbc36e7b5a15f5adca9c6a4e3820509098481a..8b2837524dab6e868e3666f0e720368254a764ea 100644
--- a/templates/selectidp-dropdown.php
+++ b/templates/selectidp-dropdown.php
@@ -38,6 +38,12 @@ foreach ($this->data['idplist'] AS $idpentry) {
 		<input type="hidden" name="returnIDParam" value="<?php echo htmlspecialchars($this->data['returnIDParam']); ?>" />
 		<select id="dropdownlist" name="idpentityid">
 		<?php
+
+		usort($this->data['idplist'], function($idpentry1, $idpentry2) {
+			return strcmp($this->t('idpname_' . $idpentry1['entityid']),
+			              $this->t('idpname_' . $idpentry2['entityid']));
+
+		});
 			
 		foreach ($this->data['idplist'] AS $idpentry) {