Hey everyone,
I’m using the rss.app API to create and retrieve RSS feeds for my users. Each user on my app has their own feed bundle, which I create using this endpoint: Create Bundle.
In one of my repeating groups, I’m iterating through a list of users, and for each user, I fetch their feed items using the [Retrieve Feed], (RSS API - Retrieve Feed | RSS.app) endpoint.
The problem I’m facing is with sorting the items. Right now, I’m fetching the feed for each user one at a time, and the items are displayed like this:
- User 1: RSS item (2 days ago)
- User 1: RSS item (5 days ago)
- User 2: RSS item (1 day ago)
- User 3: RSS item (4 days ago)
I need to maintain the association of each RSS item with the corresponding user. Still, I also need the items to be sorted by date across all users, so they appear in chronological order regardless of which user the item belongs to. Sorting is a challenge in this case, as I fetch feeds user by user.
Any advice on how to approach this?
The desired result would be:
- User 2: RSS item (1 day ago)
- User 1: RSS item (2 days ago)
- User 3: RSS item (4 days ago)
- User 1: RSS item (5 days ago)
I’ve been stuck on this for a while now, and it feels like I’m chasing my own tail. I’m sure this can be achieved, but I just can’t seem to find the right approach. Any ideas or suggestions would be really appreciated!