# HG changeset patch # User dirk # Date 1315952221 -7200 # Node ID e26210be221f457db1a23da5057434e4a2e57d9a # Parent 2f2016a10f7d6f1a9f82a49095eddfa22eb0828c emit the feedEntries sorted by feed and by update date so they come out sorted diff -r 2f2016a10f7d -r e26210be221f backend/couchdb/CouchApp/feedworm/views/feedEntries_by_feed/map.js --- a/backend/couchdb/CouchApp/feedworm/views/feedEntries_by_feed/map.js Tue Sep 13 17:52:36 2011 +0200 +++ b/backend/couchdb/CouchApp/feedworm/views/feedEntries_by_feed/map.js Wed Sep 14 00:17:01 2011 +0200 @@ -2,6 +2,6 @@ { if (doc.doctype == "feedEntry") { - emit(doc.feed, doc) + emit([doc.feed, doc.updated], doc) } }