@emilee
It's now possible to sort conversations by engagement!
As an extra bonus, this new functionality makes it easier to render threads by the same author more easily.
How?:
There's a new "sort type" optional argument. If you set it to "algorithmic" you can get the new behavior.
Under the hood, the algorithm does two main things:
- Return replies by the original author first in the list
- Then, sort replies from other authors by engagement
Check out the docs here: https://docs.neynar.com/reference/cast-conversation
Try it out!
API: /v2/farcaster/cast/conversation?sort_type=algorithmic
SDK: lookupCastConversation(/* args */, { sortType: 'algorithmic' })
Happy building πͺ