From 58c8d37102adbdd1317803a8f218f40fa928d00c Mon Sep 17 00:00:00 2001 From: illysam Date: Thu, 25 Feb 2010 15:05:49 +0000 Subject: [PATCH] HookeGUI commands.py: plugins are now sorted in alphabetical order in the Commands panel --- panels/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panels/commands.py b/panels/commands.py index e634a94..52db8a4 100644 --- a/panels/commands.py +++ b/panels/commands.py @@ -50,7 +50,10 @@ class Commands(wx.Panel): command_str = config['command']['command'] module_str = config['command']['plugin'] - for plugin in plugins: + #sort the plugins into alphabetical order + plugins_list = [key for key, value in plugins.iteritems()] + plugins_list.sort() + for plugin in plugins_list: filename = ''.join([plugin, '.ini']) path = lh.get_file_path(filename, ['plugins']) config = ConfigObj() -- 2.26.2