incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Klo <jim....@sri.com>
Subject Re: Hierarchical comments Hacker News style
Date Sun, 20 May 2012 04:08:35 GMT
I'm not sure I'm following the whole thread, but why are you storing integers as strings? 


If you store them as numbers, they would collate right I think. 

- Jim

Sent from my iPhone

On May 17, 2012, at 12:37 PM, "Luca Matteis" <lmatteis@gmail.com> wrote:

> On Thu, May 17, 2012 at 8:19 PM, Matthieu Rakotojaona
> <matthieu.rakotojaona@gmail.com> wrote:
>> ["905"] // 905 points for post "1"
>> ["1","36"] // 36 points for post "1/4"
>> ["1","76"] // 76 points for post "1/2"
>> ["1","2","14"] // 14 points for post "1/2/3"
>> ["1","4","1"] // 1 point for post "1/4/6"
> 
> Okay but the new "1/4/6" comment you just added doesn't appear
> underneath the "1/4" comment. I want the view to keep things in order
> for me. Whilst this would require me to process the view and order
> things myself using another language. Instead I only have Couch, and I
> want Couch to do the work.

Mime
View raw message