Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMup2-0008TV-Ni for pgsql-general@arkaria.postgresql.org; Thu, 18 Mar 2021 15:44:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMup1-0002hd-Ih for pgsql-general@arkaria.postgresql.org; Thu, 18 Mar 2021 15:44:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMup1-0002hW-3d for pgsql-general@lists.postgresql.org; Thu, 18 Mar 2021 15:44:27 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lMuow-0000HP-I3 for pgsql-general@lists.postgresql.org; Thu, 18 Mar 2021 15:44:26 +0000 Received: by mail-oi1-x22a.google.com with SMTP id u198so1842322oia.4 for ; Thu, 18 Mar 2021 08:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=CstTSd9j6YWFEobA6Tg7i+pIqGsstwD7fvif1xjrlyM=; b=XYrgI7Mjfm0zB2wXBzG9QPLsmbZ+ZYanKq1N1Cm2Jua8PKOtPTICh7rVE9kLPuK1HH S+0N6l1EIKfWENfj31tr9g0NBnbGfPss0+tlXVyZmnYtaZjnRj3f9cj8Cd/Ye7edtxnj MSPButfmfNoO8gyyysr+2FgbJHUj/bU0NImSJKjDlIYgULYGpD5G9hcqe+b91ypU+PGg ygMHk3rbHR2qedPtwnp7dHzmSjDwXsbuvOVI/WwsrSAbq44U31kdiFXRzC+Ss9fSKoXn BHvyt7+wbHj2RRpKZoCgRN06TlwhjBTiESc0b0btklCec59uNLfq++CgWqLdH5NIaEiU yGEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=CstTSd9j6YWFEobA6Tg7i+pIqGsstwD7fvif1xjrlyM=; b=edIFQOYCBUXYMar3YI62ElNN5sgzGyHrwrdcjpt7YHM5fcPdmufvFKwNYAPDrgi6P8 mrN2nR8dhL8/s0msUKVxMK+c64M81TwthTPve5ywWwZ34bqcea1i7Opo03tzWO3wSW/O 2+Kb9hJtbIVa6asUpdy5CwHy1ve+ufEIGZWDPcX7OodWpSMNpDGLiQtZiClD3jb9xbVM pfbzifPWSTtM5TdF5a+P07G3OrwsFT2nTIXF9WwgCsKEENJZX7kSHIxPKvbQ51T8cZTJ iuYQhD3TOI1xwk7I1M7Oq3lnp+glKzHc98ysAA0uBLWeNRGhIvgW70zEoNm4xs31W66L whKQ== X-Gm-Message-State: AOAM530KVXfXKoxEoP0t+opudtv+GoYSsQ7dOf4A0oL5GGvf1oltO0UM TVbWGX1fS6lsds9VHpLq5nxNb3RKLz4= X-Google-Smtp-Source: ABdhPJyX33Q5Vv0rpdeuvxINn1AeToR4fN0T5uSKNkdpFfd1FFwmopZ9PvRgUMEc5hPReV6nsacvWA== X-Received: by 2002:a05:6808:551:: with SMTP id i17mr3699897oig.44.1616082261154; Thu, 18 Mar 2021 08:44:21 -0700 (PDT) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id i4sm599023oik.21.2021.03.18.08.44.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Mar 2021 08:44:20 -0700 (PDT) Subject: Re: postgresql order lowercase before uppercase To: pgsql-general@lists.postgresql.org References: <5a174fad-c30d-6d65-38c8-a3d9af8377df@unix-solution.de> <645e31e2-29aa-68ac-2499-0c93bb380970@unix-solution.de> From: Ron Message-ID: Date: Thu, 18 Mar 2021 10:44:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------A64A77997F4C507980CD8A3B" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------A64A77997F4C507980CD8A3B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Exactly.  "C" collation is the opposite of what he wants. OP needs something like "de_DE". On 3/18/21 10:36 AM, Marc Millas wrote: > to me, collate 'C' ask for the raw ascii order which put caps before > because the hexa coding is lower > did you try any thing else (POSIX is same as 'C') > > Marc MILLAS > Senior Architect > +33607850334 > www.mokadb.com > > > > On Thu, Mar 18, 2021 at 4:18 PM basti > wrote: > > This does not help in that case. > > On 18.03.21 15:45, Basques, Bob (CI-StPaul) wrote: > > Maybe check out using  the UPPER/LOWER/INITCAP functions in the > order by clause? > > > > Bobb > > > > > > > >> -----Original Message----- > >> From: basti > > >> Sent: Thursday, March 18, 2021 9:40 AM > >> To: pgsql-general@postgresql.org > >> Subject: postgresql order lowercase before uppercase > >> > >> Think Before You Click: This email originated outside our organization. > >> > >> > >> Hello, > >> I need to as follow: > >> > >> ande > >> Amma > >> Anit > >> Anti > >> Brac > >> Cali > >> .... > >> > >> I have try ORDER by name COLLATE 'C'; > >> > >> but this order as follow: > >> > >> Amma > >> Anit > >> Anti > >> Brac > >> Cali > >> .... > >> ande > >> > >> Best Regards > >> > > > > -- Angular momentum makes the world go 'round. --------------A64A77997F4C507980CD8A3B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Exactly.  "C" collation is the opposite of what he wants.

OP needs something like "de_DE".

On 3/18/21 10:36 AM, Marc Millas wrote:
to me, collate 'C' ask for the raw ascii order which put caps before because the hexa coding is lower
did you try any thing else (POSIX is same as 'C')

Marc MILLAS
Senior Architect
+33607850334



On Thu, Mar 18, 2021 at 4:18 PM basti <mailinglist@unix-solution.de> wrote:
This does not help in that case.

On 18.03.21 15:45, Basques, Bob (CI-StPaul) wrote:
> Maybe check out using  the UPPER/LOWER/INITCAP functions in the order by clause?
>
> Bobb
>
>
>
>> -----Original Message-----
>> From: basti <mailinglist@unix-solution.de>
>> Sent: Thursday, March 18, 2021 9:40 AM
>> To: pgsql-general@postgresql.org
>> Subject: postgresql order lowercase before uppercase
>>
>> Think Before You Click: This email originated outside our organization.
>>
>>
>> Hello,
>> I need to as follow:
>>
>> ande
>> Amma
>> Anit
>> Anti
>> Brac
>> Cali
>> ....
>>
>> I have try ORDER by name COLLATE 'C';
>>
>> but this order as follow:
>>
>> Amma
>> Anit
>> Anti
>> Brac
>> Cali
>> ....
>> ande
>>
>> Best Regards
>>
>



--
Angular momentum makes the world go 'round.
--------------A64A77997F4C507980CD8A3B--