Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 57989 invoked from network); 17 Jul 2008 21:02:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2008 21:02:02 -0000 Received: (qmail 576 invoked by uid 500); 17 Jul 2008 21:02:01 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 277 invoked by uid 500); 17 Jul 2008 21:02:01 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 266 invoked by uid 99); 17 Jul 2008 21:02:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 14:02:01 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.198.241] (HELO rv-out-0708.google.com) (209.85.198.241) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 21:01:07 +0000 Received: by rv-out-0708.google.com with SMTP id k29so74861rvb.0 for ; Thu, 17 Jul 2008 14:01:31 -0700 (PDT) Received: by 10.141.13.16 with SMTP id q16mr1451416rvi.99.1216328491392; Thu, 17 Jul 2008 14:01:31 -0700 (PDT) Received: by 10.140.225.8 with HTTP; Thu, 17 Jul 2008 14:01:31 -0700 (PDT) Message-ID: <64a10fff0807171401u4e7fa651y15c356c75bef73d4@mail.gmail.com> Date: Thu, 17 Jul 2008 17:01:31 -0400 From: "Dean Landolt" To: couchdb-user@incubator.apache.org Subject: Re: how to set order in docs? In-Reply-To: <6b6419750807171353t34f4c4f0te494cb5a019a9388@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_34654_25721502.1216328491396" References: <6b6419750807171353t34f4c4f0te494cb5a019a9388@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_34654_25721502.1216328491396 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Pat Start here: http://www.cmlenz.net/archives/2007/10/couchdb-joins The sort key can be an array and this should do what you need. Have a look at the ML archive from earlier today... Dean On Thu, Jul 17, 2008 at 4:53 PM, Patrick Aljord wrote: > Hey all, > > What's the best way to deal with ordered list of documents, like if a > chapter has a list of sub-chapters that should be retrieved in order > so I can sort them by first sub-chapter, second, third etc? in mysql > that would be auto-increment I guess but how about couchdb? > > Thanks in advance, > > Pat > ------=_Part_34654_25721502.1216328491396--