Sorting CouchDB result by value
问题 I'm brand new to CouchDB (and NoSQL in general), and am creating a simple Node.js + express + nano app to get a feel for it. It's a simple collection of books with two fields, 'title' and 'author'. Example document: { "_id": "1223e03eade70ae11c9a3a20790001a9", "_rev": "2-2e54b7aa874059a9180ac357c2c78e99", "title": "The Art of War", "author": "Sun Tzu" } Reduce function: function(doc) { if (doc.title && doc.author) { emit(doc.title, doc.author); } } Since CouchDB sorts by key and supports a