diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-10-19 20:45:48 +0200 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-10-19 20:45:48 +0200 |
| commit | 726a4e4dcabc0d96ac6f13aef16b7ae98fb8af8f (patch) | |
| tree | f2be21eb6b48ef01fd87839586c7974ad4c5ecc0 /searx | |
| parent | 9ea84b285bf698ef81c3dd318e758f2ca8dfea63 (diff) | |
[enh] ordering categories
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/webapp.py | 2 |
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(',') |