Re: sorting RTL languages. - Mailing list pgsql-general

From Tom Lane
Subject Re: sorting RTL languages.
Date
Msg-id 16237.1044220120@sss.pgh.pa.us
Whole thread Raw
In response to Re: sorting RTL languages.  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Responses Re: sorting RTL languages.  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
List pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
>> If you want only some of your columns to be sorted per Hebraic rules,
>> I'm afraid we have no good answer at present :-( --- database locale
>> settings are all-or-nothing, at least as far as sort ordering goes.

> Presumably it is feasible to create a new rtl text type. Possibly not pretty
> though.

Well, if it was *only* a matter of rtl then he could do
    ORDER BY reverse(foo)
I don't think we have a string-reversing function (reverse('foo') = 'oof')
at the moment, but one would be easy to write.

But I'm assuming the rtl property is just one of the ways in which
Hebraic sorting differs from plain ASCII... so he really needs a locale.

            regards, tom lane

pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: sorting RTL languages.
Next
From: Nick Gazaloff
Date:
Subject: Re: php 4.2 postgresql 7.3 help