Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 574C4200CF2 for ; Sat, 2 Sep 2017 19:55:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 55B63164E34; Sat, 2 Sep 2017 17:55:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9B685164E33 for ; Sat, 2 Sep 2017 19:55:10 +0200 (CEST) Received: (qmail 78970 invoked by uid 500); 2 Sep 2017 17:55:08 -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 78959 invoked by uid 99); 2 Sep 2017 17:55:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Sep 2017 17:55:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6E157C873B for ; Sat, 2 Sep 2017 17:55:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id m9877JXncgaH for ; Sat, 2 Sep 2017 17:54:56 +0000 (UTC) Received: from z-proxy-01.utt.fr (z-proxy-01.utt.fr [193.50.230.154]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id ECB835F6BF for ; Sat, 2 Sep 2017 17:54:55 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by z-proxy-01.utt.fr (Postfix) with ESMTP id AE3C960300 for ; Sat, 2 Sep 2017 19:54:49 +0200 (CEST) Received: from z-proxy-01.utt.fr ([127.0.0.1]) by localhost (z-proxy-01.utt.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PLneL9d0hqoU for ; Sat, 2 Sep 2017 19:54:49 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by z-proxy-01.utt.fr (Postfix) with ESMTP id 69EE86051C for ; Sat, 2 Sep 2017 19:54:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at z-proxy-01.utt.fr Received: from z-proxy-01.utt.fr ([127.0.0.1]) by localhost (z-proxy-01.utt.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HJgV5fSDzTkY for ; Sat, 2 Sep 2017 19:54:49 +0200 (CEST) Received: from macbook-benel.home (LFbn-1-12279-4.w90-92.abo.wanadoo.fr [90.92.90.4]) by z-proxy-01.utt.fr (Postfix) with ESMTPSA id 40CDD60456 for ; Sat, 2 Sep 2017 19:54:49 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Custom Collation From: =?utf-8?Q?Aur=C3=A9lien_B=C3=A9nel?= In-Reply-To: Date: Sat, 2 Sep 2017 19:54:48 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <48E0F4D5-44C0-410F-BBBB-959D72EDC54C@utt.fr> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.3124) archived-at: Sat, 02 Sep 2017 17:55:11 -0000 Hi Cliff, > I am using a language where the sort order for the alphabet is: > A B D E F G H I J K L M N O P R S =C5=A0 Z =C5=BD T U V =C3=95 =C3=84= =C3=96 =C3=9C > I need to sort the keys for my views based on this order. So: > A a B b ... =C3=96 =C3=B6 =C3=9C =C3=BC > Is there any way to achieve this? I know this is not exactly what you are trying to do, but in similar = situations I =C2=AB normalize =C2=BB keys before emitting them = (transforming =C2=AB =C5=A0 =C2=BB and =C2=AB s =C2=BB into =C2=AB S =C2=BB= for example). You can still get the original (unnormalized) words in = the `doc` or `value` field. Even if =C2=AB S*** =C2=BB, =C2=AB s*** =C2=BB= and =C2=AB =C5=A0*** =C2=BB will not be sorted *for real*, they will be = next to each other in the sorted list. Implementation is trivial but here is an implementation:=20 = https://github.com/Hypertopic/Tire-a-part/blob/d54018e8a81ceedfcbac7c92115= 2e58989ec406b/lib/string.js Regards, Aur=C3=A9lien=