diff --git a/IPython/config/configurable.py b/IPython/config/configurable.py index 867c466..f2bee7e 100644 --- a/IPython/config/configurable.py +++ b/IPython/config/configurable.py @@ -160,7 +160,7 @@ class Configurable(HasTraits): final_help = [] final_help.append(u'%s options' % cls.__name__) final_help.append(len(final_help[0])*u'-') - for k,v in cls.class_traits(config=True).iteritems(): + for k,v in sorted(cls.class_traits(config=True).iteritems()): help = cls.class_get_trait_help(v, inst) final_help.append(help) return '\n'.join(final_help) diff --git a/IPython/config/loader.py b/IPython/config/loader.py index cef4f65..8adf243 100644 --- a/IPython/config/loader.py +++ b/IPython/config/loader.py @@ -417,8 +417,9 @@ class KeyValueConfigLoader(CommandLineConfigLoader): >>> from IPython.config.loader import KeyValueConfigLoader >>> cl = KeyValueConfigLoader() - >>> cl.load_config(["--A.name='brian'","--B.number=0"]) - {'A': {'name': 'brian'}, 'B': {'number': 0}} + >>> d = cl.load_config(["--A.name='brian'","--B.number=0"]) + >>> sorted(d.items()) + [('A', {'name': 'brian'}), ('B', {'number': 0})] """ self.clear() if argv is None: