incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Iriele <siriele...@gmail.com>
Subject Re: How to sort this view
Date Mon, 01 Jul 2013 20:14:03 GMT
Sorry I read that wrong... I thought all keys were the same "should
probably be wearing my glasses" it looks like its sorting normally... The
second column is ascending in value as you'd expect
On Jul 1, 2013 1:11 PM, "Robert Newson" <rnewson@apache.org> wrote:

> Views are sorted by their key (the whole key and nothing but the key).
> So make a view with your second item first to get the order you
> require.
>
> B.
>
>
> On 1 July 2013 21:04, Stanley Iriele <siriele2x3@gmail.com> wrote:
> > What are the 1st and second values... Couch dB is sorting correctly
> you're
> > just jot giving it the data it needs to sort on... So what values are you
> > trying to sort by?
> > On Jul 1, 2013 12:48 PM, "bryan rasmussen" <rasmussen.bryan@gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> I have a view that outputs like the following:
> >>
> >> ["ueoorp189", 13023123123]
> >>
> >> ["ueoorp189", 13023123125]
> >>
> >> ["ueoorp189", 13023153123]
> >>
> >> ["ueoorp189", 13073123123]
> >> I want a query that sorts it descending with the highest value in the
> >> second key
> >>
> >> From what I've read this should be possible but I am not finding my
> >> way to making it work.
> >>
> >> Do I have to do a map reduce function to do it?
> >>
> >> Thanks,
> >> Bryan Rasmussen
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message