I have a table in postgresql. The following table \"animals\" will do to explain my problem:
name ------ tiger cat dog
Now I am using the follo
Have you tried to use generate_series() on the array, and then do a SELECT...ORDER BY on that result (or just nest it inside of the SELECT) before you convert it to a string?
generate_series()
SELECT...ORDER BY
SELECT