From 3644da0741a40ba968654215f8d0b640573d1942 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Tue, 5 Sep 2023 14:01:19 +0200 Subject: [PATCH] Sort channels on hosts page Related: https://pagure.io/koji/issue/3907 --- www/kojiweb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index 0e0b3ae6..b58bd986 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -1723,7 +1723,7 @@ def hosts(environ, state='enabled', start=None, order='name', ready='all', chann channel = 'all' values['channel'] = channel - values['channels'] = server.listChannels() + values['channels'] = sorted(server.listChannels(), key=lambda x: x['name']) if hosts and 'update_ts' not in hosts[0]: # be nice with older hub