Way of sorting What?

Hi~

I would like to sort (ex2014-01-01 ~ 2014-04-21) descending or ascending the Value value from the data of the Document.

Way of sorting What?

A great way to do this would be with a view with dateToArray().
http://docs.couchbase.com/couchbase-manual-2.2/#built-in-utility-functions.

for ascending / descending
http://docs.couchbase.com/couchbase-manual-2.2/#querying-using-the-rest-api
and for descending pass true or false