aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/mongodb.py')
-rw-r--r--source/mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 6b15f0fd..1ba69304 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -150,7 +150,7 @@ class Articles(object):
# only for a feed
collection = self.db[feed_id]
cursor = collection.find({'type':1, 'article_like':True})
- return cursor
+ return cursor.sort([("article_date", pymongo.DESCENDING)])
else:
favorites = []
for feed_id in self.db.collection_names():
bgstack15