diff --git a/services/OauthService.php b/services/OauthService.php
index <HASH>..<HASH> 100644
--- a/services/OauthService.php
+++ b/services/OauthService.php
@@ -619,7 +619,8 @@ class OauthService extends BaseApplicationComponent
 
         foreach($oauthProviderTypes as $oauthProviderType)
         {
-            $providers[$oauthProviderType] = $this->_createProvider($oauthProviderType);
+            $provider = $this->_createProvider($oauthProviderType);
+            $providers[$provider->getHandle()] = $provider;
         }
 
         ksort($providers);
Fixed a bug where providers were not properly alphabetically sorted