Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4CF710A35 for ; Mon, 1 Jul 2013 20:05:01 +0000 (UTC) Received: (qmail 7969 invoked by uid 500); 1 Jul 2013 20:05:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7931 invoked by uid 500); 1 Jul 2013 20:05:00 -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 7923 invoked by uid 99); 1 Jul 2013 20:05:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 20:05:00 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of siriele2x3@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 20:04:53 +0000 Received: by mail-wg0-f44.google.com with SMTP id m15so4076097wgh.23 for ; Mon, 01 Jul 2013 13:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mwoNWVwsCQaZzkF2OpzYueX0lc9FtcNqiPzR+NSR+H8=; b=g2hXD5jIuk8ro9lIv/il7E4M8yh/7VFDatVzgkfeY5LEBW/G++vQKxbcQuhvHxdpbP CErbnRaD92OmxDn2716ks8Y30wn8SmBx2fryWudqRWE5/C7JWkUqowr79XYK1qoW+SHR KQKgOSa4fCfIfKS0bQtrNKMQdpC8SxcLI1hLuRIUPlQKNe0NVJRgHuV0rThdAfXcKMw6 979PrgHGx6NHdSLeuH28xMZOKy//PSvXRtqcMoAqefVvnB5Wk23D1TV/GMHMAnBfclFI p7IpS7wkCnb0b01SB6lGOBmWI3F25zZBmTzw8+10dSbBwR1Zswdw0eQ/bWRx3+BzC7Yt wh0A== MIME-Version: 1.0 X-Received: by 10.180.210.148 with SMTP id mu20mr13052764wic.38.1372709073550; Mon, 01 Jul 2013 13:04:33 -0700 (PDT) Received: by 10.194.64.136 with HTTP; Mon, 1 Jul 2013 13:04:33 -0700 (PDT) Received: by 10.194.64.136 with HTTP; Mon, 1 Jul 2013 13:04:33 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Jul 2013 13:04:33 -0700 Message-ID: Subject: Re: How to sort this view From: Stanley Iriele To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a11c38182b585ae04e078bca5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c38182b585ae04e078bca5 Content-Type: text/plain; charset=ISO-8859-1 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" 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 > --001a11c38182b585ae04e078bca5--