couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pulkit Singhal <pulkitsing...@gmail.com>
Subject Re: How to specify different sort order for the elements of a compound map key?
Date Wed, 05 Sep 2012 15:37:01 GMT
Yes Aurélien that sounds like a decent workaround :)

@Paul, thanks for clearing up that this functionality is not here ... its
good to get a straight answer. I'll get in touch with you if I ever get on
the programming in Erlang bandwagon ;)

On Wed, Sep 5, 2012 at 2:58 AM, Aurélien Bénel <aurelien.benel@utt.fr>wrote:

> Hi Pulkit,
>
> > But I want it to sort as:
> > [No, 2012]
> > [No, 2011]
> > [Yes, 2012]
> > [Yes, 2011]
>
> Hmm... In that case, couldn't you simply code "No" as 1 and "Yes" as 0 and
> then use a descending order ?
> Or am I missing something?
>
>
> Regards,
>
> Aurélien
>
>

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