Sort tag search by time posted
This commit is contained in:
parent
5abca18d04
commit
b33e43cb00
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ def get_mentions(username):
|
|||
|
||||
|
||||
def find_posts_by_hashtag(tag):
|
||||
return timeline_db.find({'hashtags': tag})
|
||||
return timeline_db.find({'hashtags': tag}).sort('timePosted', pymongo.DESCENDING)
|
||||
|
||||
|
||||
def post_details(post_id):
|
||||
|
|
Loading…
Add table
Reference in a new issue