From 726a4e4dcabc0d96ac6f13aef16b7ae98fb8af8f Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sat, 19 Oct 2013 20:45:48 +0200 Subject: [PATCH] [enh] ordering categories --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 9efb97ee5..6bfe4c40a 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -45,7 +45,7 @@ opensearch_xml = ''' def render(template_name, **kwargs): global categories - kwargs['categories'] = categories.keys() + kwargs['categories'] = sorted(categories.keys()) if not 'selected_categories' in kwargs: kwargs['selected_categories'] = [] cookie_categories = request.cookies.get('categories', '').split(',')