aboutsummaryrefslogtreecommitdiff
path: root/mongodb.py
diff options
context:
space:
mode:
Diffstat (limited to 'mongodb.py')
-rw-r--r--mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mongodb.py b/mongodb.py
index c6f6ee8b..ac107c22 100644
--- a/mongodb.py
+++ b/mongodb.py
@@ -90,7 +90,7 @@ class Articles(object):
cursor = self.db[collection_name].find({"type":0, condition[0]:condition[1]})
if cursor.count() != 0:
feeds.append(cursor.next())
- feeds = sorted(feeds, key=itemgetter('feed_title'))
+ feeds.sort(key = lambda elem: elem['feed_title'].lower())
return feeds
def get_articles_from_collection(self, feed_id, condition=None):
bgstack15