Tuesday, July 8, 2008

Re: [GENERAL] array sort for varchar arrays?

> I'm likely overlooking something, but I can't seem to find a function to
> sort a varchar array. Something like "select
> sort('{y,z,x}'::varchar[])" => {'x','y','z'}.

You've got it right. On Pg 8.3.3 I get
SELECT sort(array['z','y','x']) -> {x,y,z}

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

No comments: