diff --git a/discord_rss_bot/main.py b/discord_rss_bot/main.py index f674caf..357c3ce 100644 --- a/discord_rss_bot/main.py +++ b/discord_rss_bot/main.py @@ -200,6 +200,9 @@ def make_context_index(request) -> dict: hook = reader.get_tag(feed.url, "webhook") feed_list.append({"feed": feed, "webhook": hook}) + # Sort feed_list by feed url + feed_list.sort(key=lambda x: x["feed"].url) + feed_count: FeedCounts = reader.get_feed_counts() entry_count: EntryCounts = reader.get_entry_counts() context: dict[str, Any] = {