Re: order by question.

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: order by question.
Дата
Msg-id 20070504123545.B20709@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: order by question.  ("Jose Blanco" <blancoj@umich.edu>)
Ответы Re: order by question.  ("Jose Blanco" <blancoj@umich.edu>)
Список pgsql-bugs
On Fri, 4 May 2007, Jose Blanco wrote:

> This second time I did, see
>
> select author, sort_author from itemsbyauthor where sort_author like 'tan%'
> order by 2;
>
>
> "order by 2"
>
> Or am I not understanding something?

One issue you might not realize is that the sort order for some locales
ignore symbols and spaces for initial scans, so for example, you might
find that "A Z" > "AB" while " " < "B". Specifically, for the data you
gave, en_US would order them "tan, fang", "tang, s. c.", "tan, weihong"
while C would order them "tan, fang", "tan, weihong", "tang, s. c.".

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: order by question.
Следующее
От: "Jose Blanco"
Дата:
Сообщение: Re: order by question.