From 22fb6e8facd9bb7b22a175dd9ccac98609b2cfaa 2012-03-16 21:52:06 From: MinRK Date: 2012-03-16 21:52:06 Subject: [PATCH] fix sorting profiles in clustermanager --- 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):