# HG changeset patch # User wbell # Date 1271900775 0 # Node ID 5e274fc552c3e1ef6c89d18110594fb69668b58f # Parent 77ddb8c210d8f9eed041e52b6783fab8eaff76a3 Sort the list of configurations by name in the administration panel. diff --git a/bitten/admin.py b/bitten/admin.py --- 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')