changeset 743:5e274fc552c3

Sort the list of configurations by name in the administration panel.
author wbell
date Thu, 22 Apr 2010 01:46:15 +0000
parents 77ddb8c210d8
children 0bec85f087e6
files bitten/admin.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/admin.py
+++ b/bitten/admin.py
@@ -212,7 +212,7 @@
                     'href': req.href.admin('bitten', 'configs', config.name),
                     'recipe': config.recipe and True or False
                 })
-            data['configs'] = configs
+            data['configs'] = sorted(configs, key=lambda x:x['label'].lower())
 
         add_stylesheet(req, 'bitten/admin.css')
         add_script(req, 'common/js/suggest.js')
Copyright (C) 2012-2017 Edgewall Software