2009/12/25 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
>> It is maybe a bug. I cannot use ORDER BY clause in two parameter aggregate.
>
> I think you don't understand the syntax. Put the aggregate arguments
> first, then the ORDER BY.
>
Sorry, I don't see it. Please, could you be more descriptive.
> regards, tom lane
>