Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHrEx-0005Je-H4 for pgsql-docs@arkaria.postgresql.org; Tue, 28 Jun 2016 11:31:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bHrEw-00058J-Uw for pgsql-docs@arkaria.postgresql.org; Tue, 28 Jun 2016 11:31:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bHrEw-00058D-Er for pgsql-docs@postgresql.org; Tue, 28 Jun 2016 11:31:38 +0000 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bHrEp-0001Uq-7F for pgsql-docs@postgresql.org; Tue, 28 Jun 2016 11:31:37 +0000 Received: by mail-lf0-x232.google.com with SMTP id q132so9168994lfe.3 for ; Tue, 28 Jun 2016 04:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:message-id:date:to:mime-version; bh=Pv28gsnCvzTf3wOes72rBua9SzL+37rrO0rn5XnKQE0=; b=NJBqCigJQvZqUNlpChh9GcG4z85rLJkx+NrKrqpEibEcNT7xVCFIRDI7hBCQJZjUcC YTBnneSgvLqOBzJ/8PyKgKOR8qptqc4WDkeaD0h9sc+fZtyNA323GAFkAHXqVdpz7DVN NpkkN1XWIgztz9FP7HHnKle1AlTsvTfKc2jLVQBouNQSOx6oUc5Habt6lO9KiqIlR3gz 3PswMzTQpwmKDuY9FR+4B1LqvAJRCfH3KsC1JetZKmuwFvmuO81qwt+uaoOHYG2sdtj0 CU3U9OIG76p8KPIQHH4LZ9fQprBimFgewycEKTl5peDoZnoiqPPUOsjHc+46Ld70YZpb 0f6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:message-id:date:to:mime-version; bh=Pv28gsnCvzTf3wOes72rBua9SzL+37rrO0rn5XnKQE0=; b=WLkkVQy/d9vgsAJdVMawme7TK3+jKZkuxiKybcv16OdqcRGcJNWCqX21kq3ye2oL6R igbDA5Mq/Dqohk9FgXEy++Izrsv+NVEQ23KKqiDXQ/rF5y6/HkpO8eo2GkjNIFITnQdQ 7p4I0MD6ROqG9GxkhsN/WmMGd1qpMFU8Lgc2qHIqBCo6c87DHtauKfP7bYWxx++LvkuT uM6hyyYY/eAVNNYeHXPi0sY5oK05/Du2n/TXTsF1EC/xwSMjY9z8wJ1yonosAQ0PZpMl hvVZtO1pZNO0WtvLTX4Ro50YvzsnLpzTdZ8vFRi6u/ifJ6IeqUG3SVpUouGnu95okMhn M1PQ== X-Gm-Message-State: ALyK8tLxqympEfz0gY0DIQivDeAUW6/GBsreXmFtWs3OmkAJ/ST7t90gi8oK3d7sR/Ak1Q== X-Received: by 10.25.214.161 with SMTP id p33mr690380lfi.169.1467113488992; Tue, 28 Jun 2016 04:31:28 -0700 (PDT) Received: from [192.168.185.16] ([80.94.224.211]) by smtp.gmail.com with ESMTPSA id a199sm3973908lfe.35.2016.06.28.04.31.26 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 04:31:27 -0700 (PDT) From: Anthony Ananich Content-Type: multipart/alternative; boundary="Apple-Mail=_AAA2394D-ADDD-4BA1-8AAF-E73AB7777201" Subject: Override sort order Message-Id: Date: Tue, 28 Jun 2016 14:31:02 +0300 To: pgsql-docs@postgresql.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --Apple-Mail=_AAA2394D-ADDD-4BA1-8AAF-E73AB7777201 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Dear All, I=92ve got a need to change sort order for jsonb field. I=92m looking = for a way to change =93order by=94 behavior like it is described in my = previous question. I=92ve found a piece of doc which says that it is possible to override = method =93int compare(Datum a, Datum b)=94 here: https://www.postgresql.org/docs/9.5/static/gin-extensibility.html I wonder if there are any examples available?=20 If not I=92m opened to offer my help in making one. Regards, Anthony Ananich http://ananich.pro= --Apple-Mail=_AAA2394D-ADDD-4BA1-8AAF-E73AB7777201 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Dear All,

I=92ve got a = need to change sort order for jsonb field. I=92m looking for a way to = change =93order by=94 behavior like it is described in my previous = question.

I=92ve found a piece of doc which = says that it is possible to override method =93int compare(Datum a, = Datum b)=94 here:
https://www.postgresql.org/docs/9.5/static/gin-extensibility.html
I wonder if there are any examples = available? 

If not I=92m opened to offer = my help in making = one.

Regards,
Anthony = Ananich
http://ananich.pro
= --Apple-Mail=_AAA2394D-ADDD-4BA1-8AAF-E73AB7777201--