Couchbase Server

What should I do if I want to sort reduce results?