Re: sorting RTL languages.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Amir Hardon <hardon(at)actcom(dot)co(dot)il>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: sorting RTL languages.
Date: 2003-02-02 20:54:06
Message-ID: 15077.1044219246@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Amir Hardon <hardon(at)actcom(dot)co(dot)il> writes:
> I need to get sorted data from a database I have on postgresql,
> the data is in Hebrew which is written from right to left,
> now when I do a SELECT ... ORDER BY ... I get the information sorted by the
> last letter first.
> Is there anyway to overcome this? other than holding the data reversed?

If your machine has a Hebrew locale setting in which sorting is done
right-to-left, then you could initdb in that locale, and text sorting
would happen according to the locale rules.

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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2003-02-02 20:54:28 Re: basic access problem on W2K
Previous Message Raymond O'Donnell 2003-02-02 20:32:57 Re: basic access problem on W2K