Urutan array_agg PostgreSQL

Tabel 'hewan': animal_name animal_type Tom Cat Jerry Mouse Kermit Frog Pertanyaan: SELECT array_to_string(array_agg(animal_name),';') animal_names, array_to_string(array_agg(animal_type),';') animal_types FROM animals; Hasil yang diharapkan: Tom;Jerry;Kerimt,