From 06830da5d8c9ecd5bfda1d3db50521426947f75b Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Sep 20 2023 10:01:29 +0000 Subject: Sort channels on hosts page Related: https://pagure.io/koji/issue/3907 --- diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index 35ed162..7aeaf1b 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