web: order methods by name in select box

Fixes: https://pagure.io/koji/issue/2556
This commit is contained in:
Tomas Kopecek 2020-10-27 13:40:38 +01:00
parent 97c4084d70
commit 6854803aec

View file

@ -511,7 +511,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']):