From 403de87590d00d03913b44c5e2993e55686790bb Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 27 2020 12:40:38 +0000 Subject: web: order methods by name in select box Fixes: https://pagure.io/koji/issue/2556 --- diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index e3c6080..092afc6 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -510,7 +510,7 @@ def tasks(environ, owner=None, state='active', view='tree', method='all', hostID else: method = 'all' values['method'] = method - values['alltasks'] = _TASKS + environ['koji.options']['Tasks'] + values['alltasks'] = sorted(_TASKS + environ['koji.options']['Tasks']) treeEnabled = True if hostID or (method not in ['all'] + _PARENT_TASKS + environ['koji.options']['ParentTasks']):