Apologies for not thinking the first time. There's an example on the wiki [1] called "Retrieve the top N tags" that does that you want. It only works because you know what N is a priori though.
HTH, Paul Davis [1] http://wiki.apache.org/couchdb/View_Snippets On Mon, Oct 5, 2009 at 9:36 PM, Seggy Umboh <[email protected]> wrote: > Hello everyone, > I've been reading about couchdb and just started playing around with it, and > I am wondering, in the typical blog/comment example application, is it > possible to get a list of the Top 10 commenters? It is trivial to write a > view to get the number of comments for each commenter, but now I want to > sort the result of that view by the values.... >
