> View results are sorted by key, so you must use complex keys (arrays) to add > the updated_at field in your keys. > > Then you will be able to query the view for a date range with the startkey > and endkey parameters. > > see also > http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options > and > http://wiki.apache.org/couchdb/View_collation > > > Martin >
Thanks Martin. I actually read those. The key can be a JSON array. However, in my situation I only wanted to sort by the date, I didn't really want to specify a date in the first type query. Do you have an example of what this complex key should look like when querying? -- Best regards, He Shiming
