diff --git a/IPython/frontend/html/notebook/clustermanager.py b/IPython/frontend/html/notebook/clustermanager.py
index 6a28fa4..9d07c4b 100644
--- a/IPython/frontend/html/notebook/clustermanager.py
+++ b/IPython/frontend/html/notebook/clustermanager.py
@@ -91,8 +91,7 @@ class ClusterManager(LoggingConfigurable):
def list_profiles(self):
self.update_profiles()
- result = [self.profile_info(p) for p in self.profiles.keys()]
- result.sort()
+ result = [self.profile_info(p) for p in sorted(self.profiles.keys())]
return result
def check_profile(self, profile):