incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Bardubitzki <step...@bardubitzki.com>
Subject How to sort?
Date Fri, 07 Sep 2012 21:22:21 GMT
Still learning CouchDB, I have the following view function:

||"|getAllByCategory|":|{
     "|map|":|"function(doc) { if(doc.categories) { doc.categories.forEach(function(category)
{ emit(category, doc) });}}"|
}|||

That gives me all docs for a certain category. I would like to have the 
emitted docs sorted by doc.name, how can I achieve that?

Thanks,
Stephan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message