I'll note, one time only, that you asked this same question in #couchdb IRC room but did not engage with the help you were receiving.
Views are ordered by their key, their full key, and nothing but their key. So you can't perform the query you are after. Namely, sorting by value. B. On 30 July 2013 16:49, Hank Knight <[email protected]> wrote: > This returns 3 rows: > https://zurv3aqzm.iriscouch.com/fruit/_design/zzz6/_view/zzz6?limit=3&group=true > > I want to display the 3 rows with the highest value, not any arbitrary 3 rows. > > Here is my code: > > /// Map Function /// > function(doc) { > if (doc.fruit) emit(doc.fruit, null); > } > > /// Reduce Function /// > _count > > /// Grouping: True ///
