diff backend/couchdb/CouchDbBackend.py @ 189:e5d492595bdb

the view returns feed entries for a feed sorted by update date now, no need to do sorting in-memory
author dirk
date Wed, 14 Sep 2011 00:17:55 +0200
parents ac1de0a467fd
children 7157bfd3f4d4
line wrap: on
line diff
--- a/backend/couchdb/CouchDbBackend.py	Wed Sep 14 00:17:01 2011 +0200
+++ b/backend/couchdb/CouchDbBackend.py	Wed Sep 14 00:17:55 2011 +0200
@@ -53,8 +53,6 @@
 
     def _retrieveEntriesForSelectedFeed(self, hideReadEntries):
         viewResults = FeedEntry.entriesForFeed(self.selectedFeed, self.database)
-        # TODO update date is a string ... convert to a ListDateTimeField for better sort support
-        viewResults.sort(FeedEntry.compareByUpdateDate, reverse=True)
         if hideReadEntries:
             filterFunc = lambda feedEntry: feedEntry.read == False
             viewResults = filter(filterFunc, viewResults)