Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vifDY-00Cgfl-0r for pgsql-general@arkaria.postgresql.org; Wed, 21 Jan 2026 20:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vifDX-009MQT-00 for pgsql-general@arkaria.postgresql.org; Wed, 21 Jan 2026 20:54:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vifDW-009MQK-28 for pgsql-general@lists.postgresql.org; Wed, 21 Jan 2026 20:54:19 +0000 Received: from pmg-2.outbound.snap.net.nz ([202.37.100.100]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vifDT-001efJ-2E for pgsql-general@lists.postgresql.org; Wed, 21 Jan 2026 20:54:18 +0000 Received: from pmg-2.snap.net.nz (localhost.localdomain [127.0.0.1]) by pmg-2.snap.net.nz (Proxmox) with ESMTP id 5E826549241; Thu, 22 Jan 2026 09:54:09 +1300 (NZDT) Received: from smtp.snap.net.nz (smtp.snap.net.nz [202.37.100.140]) by pmg-2.snap.net.nz (Proxmox) with ESMTP id 1D70C34CF8F; Thu, 22 Jan 2026 09:54:08 +1300 (NZDT) Received: from x24.msqr.us (msqr.us [123.255.47.99]) by rupert.snap.net.nz (Postfix) with ESMTPS id 0A3C112E5; Thu, 22 Jan 2026 09:54:08 +1300 (NZDT) Received: from smtpclient.apple (unifi.localdomain [192.168.1.1]) (authenticated bits=0) by x24.msqr.us (8.18.1/8.16.1) with ESMTPSA id 60LKs6Fg044089 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Jan 2026 09:54:07 +1300 (NZDT) (envelope-from postgresql.org@msqr.us) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=msqr.us; s=20121026; t=1769028847; bh=nwCMWlOyCm2Ff82lmJcKhuVik96oq3IV0S9xgDNOcow=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=lknTU7dEq/cYPyz8y/5fDMibvu8GDwXNTi1Y/xlWhsPcP7p1/3TQGTVm6LNedXMCO LNH0ikP8XZRQcyj+6DkrhNtWZd4lUp3vLr0DeTWMOiala4ggv/ZPFThdXW3E34+cWf p4hp7/c71XaTfAhvF9M9oknvTnUBSYy8XBHvsklY= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.5.1 at msqr.us From: Matt Magoffin Message-Id: <7216E909-5C02-469E-A970-41BEDD4B0242@msqr.us> Content-Type: multipart/alternative; boundary="Apple-Mail=_179C084A-9FA1-4FFD-A1A9-62D141200EAA" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.4\)) Subject: Re: Collation with upper and numeric comparing in unexpected way Date: Thu, 22 Jan 2026 09:53:56 +1300 In-Reply-To: <03f1450c-a730-40af-890c-c269db74a8ec@eisentraut.org> Cc: pgsql-general@lists.postgresql.org To: Peter Eisentraut References: <9EBA273E-7F3C-40F4-8156-745A4BB5B090@msqr.us> <03f1450c-a730-40af-890c-c269db74a8ec@eisentraut.org> X-Mailer: Apple Mail (2.3826.700.81.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_179C084A-9FA1-4FFD-A1A9-62D141200EAA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 21 Jan 2026, at 8:52=E2=80=AFPM, Peter Eisentraut = wrote: > This is just my guess from the outside. The numeric sorting is not a = part of the Unicode Collation Algorithm standard, it is an extension by = ICU, so one would have to dig into the code or documentation there, but = I didn't find anything. >=20 > I don't know if there is a way to customize this further to get the = effect you want. Maybe you could reach out to an ICU support forum to = get more expert insights there. Ah, thank you for your thoughts. I will reach out to the ICU project as = you suggest.= --Apple-Mail=_179C084A-9FA1-4FFD-A1A9-62D141200EAA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On 21 Jan = 2026, at 8:52=E2=80=AFPM, Peter Eisentraut <peter@eisentraut.org> = wrote:
This is just my guess from the outside.  The = numeric sorting is not a part of the Unicode Collation Algorithm = standard, it is an extension by ICU, so one would have to dig into the = code or documentation there, but I didn't find = anything.

I don't = know if there is a way to customize this further to get the effect you = want.  Maybe you could reach out to an ICU support forum to get = more expert insights there.

Ah, = thank you for your thoughts. I will reach out to the ICU project as you = suggest.
= --Apple-Mail=_179C084A-9FA1-4FFD-A1A9-62D141200EAA--