Ordre array_agg PostgreSQL

Tableau 'animaux': animal_name animal_type Tom Cat Jerry Mouse Kermit Frog Requete: SELECT array_to_string(array_agg(animal_name),';') animal_names, array_to_string(array_agg(animal_type),';') animal_types FROM animals; Résultat attendu: Tom;Jerry;Kerimt, Cat;Mouse;Frog OR Tom;Kerimt;Jerry,...