GetStream / stream-python

Python Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
142 stars 40 forks source link

How can I sort all the activity in the feed by a time field. #74

Closed japrogramer closed 6 years ago

japrogramer commented 6 years ago

I want the most recent edited, so I want to update the activity and have it show up firs

This is what Im currently using.

 37         feeds = feed_manager.get_news_feeds(self.request.user.id)                                                                                                                                               
 38         activities = feeds.get('timeline').get()['results'] 
dwightgunning commented 6 years ago

By default, feeds are read in reverse-chronological order based on the 'time' field. To obtain the feed with activities in a different order, you'll need to apply a custom ranking algorithm.

Closing for now.