diff --git a/discussfeed.py b/discussfeed.py index e296648..c55e78c 100644 --- a/discussfeed.py +++ b/discussfeed.py @@ -90,6 +90,7 @@ if __name__ == "__main__": update_rss_file(filename, args.feed_url) root = parse_rss_file(filename) posts = get_new_posts(last_updated, root) + posts.sort(key=lambda post: post.date) LOGGER.info(f'found {len(posts)} new posts') for post in posts: