summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-19 20:45:48 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-19 20:45:48 +0200
commit726a4e4dcabc0d96ac6f13aef16b7ae98fb8af8f (patch)
treef2be21eb6b48ef01fd87839586c7974ad4c5ecc0 /searx/webapp.py
parent9ea84b285bf698ef81c3dd318e758f2ca8dfea63 (diff)
[enh] ordering categories
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py2
1 files changed, 1 insertions, 1 deletions
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 = '''<?xml version="1.0" encoding="utf-8"?>
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(',')