Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 6399 invoked from network); 6 Aug 2009 21:51:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 21:51:16 -0000 Received: (qmail 69984 invoked by uid 500); 6 Aug 2009 21:51:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 69940 invoked by uid 500); 6 Aug 2009 21:51:21 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 69911 invoked by uid 99); 6 Aug 2009 21:51:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 21:51:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of didier.lafforgue@gmail.com designates 74.125.78.24 as permitted sender) Received: from [74.125.78.24] (HELO ey-out-2122.google.com) (74.125.78.24) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 21:51:12 +0000 Received: by ey-out-2122.google.com with SMTP id 9so400478eyd.29 for ; Thu, 06 Aug 2009 14:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=iKZdWuvplofHjTEDBFiiPjg8Jb26bvC9pMoHqVJEmgo=; b=gIg9ZcczOnlnsLnERO61b5+GJzBj+GXaGh3xRMvjZmY1rNjMIB2ym03evKmMUq9E9z g56XX56ccyQWeDwWMNwWT7EOWSNVto0tdSAzNu7/G3s0hqAfk7iTCEJgI0Aik9lgw0Eo P9BiPCRej/x0QAkMbSqsCA1lDRNmIgQOkxmmc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Y+s96sZEXvfbXa27OVjrnJzNjd5fo0kDCd9e8u0L8oMxB3w8nNBOqGaA/Geti9F56w eVpo0Jd4uOJlN2wTEHV4EjJgau3dXfXXWMDttXdz2pcuSPb2S0uVRHkuQTs9fKa6g8vV HQqm65DPP7As3gEhJERaNWkiSJs83AFmpFylQ= MIME-Version: 1.0 Received: by 10.210.59.5 with SMTP id h5mr439234eba.48.1249595451764; Thu, 06 Aug 2009 14:50:51 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Aug 2009 23:50:51 +0200 Message-ID: Subject: Re: sorted documents by their position From: didier lafforgue To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015174c170003f2760470801d27 X-Virus-Checked: Checked by ClamAV on apache.org --0015174c170003f2760470801d27 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > If you store the position as a float (or a string) then you only have > to update the position on the changed document, not all of the docs in > the list. > > Eg, if you want project P to come between projects B and C, then > average the positions of B and C and make that the new position of P. > > Thanks Chris, nice trick ;-) --0015174c170003f2760470801d27--