Override sort order - Mailing list pgsql-docs

From Anthony Ananich
Subject Override sort order
Date
Msg-id B4D3400F-AFCC-42B8-A655-333DB2473111@gmail.com
Whole thread Raw
Responses Re: Override sort order
List pgsql-docs
Dear All,

I’ve got a need to change sort order for jsonb field. I’m looking for a way to change “order by” behavior like it is described in my previous question.

I’ve found a piece of doc which says that it is possible to override method “int compare(Datum a, Datum b)” here:
https://www.postgresql.org/docs/9.5/static/gin-extensibility.html

I wonder if there are any examples available? 

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

Regards,
Anthony Ananich
http://ananich.pro

pgsql-docs by date:

Previous
From: marc+pgsql@milestonerdl.com
Date:
Subject: Encoding change actually works)
Next
From: Anthony Ananich
Date:
Subject: Re: Override sort order