Return-Path: X-Original-To: apmail-crunch-user-archive@www.apache.org Delivered-To: apmail-crunch-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 0F84B11368 for ; Wed, 27 Aug 2014 22:56:47 +0000 (UTC) Received: (qmail 10342 invoked by uid 500); 27 Aug 2014 22:56:47 -0000 Delivered-To: apmail-crunch-user-archive@crunch.apache.org Received: (qmail 10316 invoked by uid 500); 27 Aug 2014 22:56:46 -0000 Mailing-List: contact user-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@crunch.apache.org Delivered-To: mailing list user@crunch.apache.org Received: (qmail 10306 invoked by uid 99); 27 Aug 2014 22:56:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 22:56:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph.adler@gmail.com designates 209.85.220.42 as permitted sender) Received: from [209.85.220.42] (HELO mail-pa0-f42.google.com) (209.85.220.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 22:56:21 +0000 Received: by mail-pa0-f42.google.com with SMTP id lf10so82061pab.15 for ; Wed, 27 Aug 2014 15:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=ub64p+doqA1uC4szaO2Rs+oooSzVloys8zLPMZhLDLo=; b=zV+f9KancyRCzG4BjBS+bPwaTBnojUI4JpzA02iPoHRJyNdRXFm9UnBrGvDQmp0iyq XiYMwuY5s58SVND43OUzQQo/wHF1kaGupXgXgYEX5aEoMLlFaWpeMrAuY8OR8e7MBcWU qC7+8lZityOHXYwTtjxmwk975iPjj0UMA56LjfeK86c7o4DixasGeJRKmDx2V4C016of ouz5BB8fr4pu00rsvpxvQxP3knNzgfPaFXKdsIwZCC2FP1mhm7lCfFBEmB5AYlqSztQY IWSfUsrL9xCKDE0dE6ommPiAIR5g5MGL/96YazybUg6k7tzCn2XlmRwgT9cJcjzK40me 7QrA== MIME-Version: 1.0 X-Received: by 10.68.69.8 with SMTP id a8mr8673661pbu.165.1409180180077; Wed, 27 Aug 2014 15:56:20 -0700 (PDT) Received: by 10.70.86.131 with HTTP; Wed, 27 Aug 2014 15:56:20 -0700 (PDT) Reply-To: jadler@alum.mit.edu In-Reply-To: References: Date: Wed, 27 Aug 2014 15:56:20 -0700 Message-ID: Subject: Re: SecondarySort Order From: Joseph Adler To: user@crunch.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Why don't you write a customer comparator and specify it in the config? -- Joe On Wed, Aug 27, 2014 at 3:36 PM, Josh Wills wrote: > Oh, then just negate it. > > > On Wed, Aug 27, 2014 at 3:34 PM, Danny Morgan > wrote: >> >> No just numbers, the key is seconds since the epoch. >> >> ________________________________ >> From: jwills@cloudera.com >> Date: Wed, 27 Aug 2014 15:27:00 -0700 >> Subject: Re: SecondarySort Order >> To: user@crunch.apache.org >> >> >> Not without reversing the key in some sense-- easy to do with numbers, >> harder to do with strings. I assume your case is the latter? >> >> >> On Wed, Aug 27, 2014 at 1:26 PM, Danny Morgan >> wrote: >> >> Any way to perform a secondary sort in descending order of K2 as below? >> >> PTable> >> >> Thanks, >> >> Danny >> >> >> >> >> -- >> Director of Data Science >> Cloudera >> Twitter: @josh_wills > > > > > -- > Director of Data Science > Cloudera > Twitter: @josh_wills