From d2f940b286855d3891eb392a9c09cd1d1e1a44b5 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 11 Sep 2022 09:44:52 -0700 Subject: [PATCH] Alphabetize filters before sending to jinja. --- frontends/bringrss_flask/backend/endpoints/feed_endpoints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/bringrss_flask/backend/endpoints/feed_endpoints.py b/frontends/bringrss_flask/backend/endpoints/feed_endpoints.py index 2fce7b2..52c65fa 100644 --- a/frontends/bringrss_flask/backend/endpoints/feed_endpoints.py +++ b/frontends/bringrss_flask/backend/endpoints/feed_endpoints.py @@ -111,6 +111,7 @@ def get_feed_settings(feed_id): feed_filters = list(feed.get_filters()) available_filters = set(common.bringdb.get_filters()) available_filters.difference_update(feed_filters) + available_filters = sorted(available_filters, key=lambda filt:filt.name.lower()) return common.render_template( request, 'feed_settings.html',