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
To update on this question, Snowflake has implemented array sorting:
SELECT array_sort(array_agg("name") FROM animals;
Can also use array_sort_by to sort an object
array_sort_by