you can only order by descending created_at via limit

Reply to this note

Please Login to reply.

Discussion

(I added limit as a last minute thing, didn’t want to hard fork it too much)

so there is a scope of introducing order by in future?

Possibly, its becoming harder to touch nip01 now though

Do relaypool abide by this sorting?

Most of times, it works as you said but sometimes the order is random in query results

They can come back in interleaved order if you’re using a relay pool, so you need to do an insertion sort when putting them into a timeline

understood. thanks

If I am to use just one single relay and I am loading 20-30 posts per load, would using relay pool be better or a single relay is a better option.

I am using relay pool but the feed on my app is barely refreshing. Same content always. Not sure why.

Could you suggest a better way?