couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Eck <>
Subject Descending dates per username
Date Tue, 10 May 2011 19:42:13 GMT

I am having the following issue with CouchDB:

My view outputs an array key made up of a username and a timestamp:
emit([doc.user, doc.timestamp]).
I would like to use the view to get all docs for a specific user
sorted by timestamp, with the newest documents first.

Using ...?startkey=["user"]&endkey=["user",{}] works fine, but sorts
the docs in the wrong order.
Now adding &descending=true gives an empty result.

Thanks for any help,

View raw message