From 27c557a1356feff00a958ca67d8a7537a04c4e12 Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Fri, 8 Mar 2024 17:20:24 +0530 Subject: [PATCH] Sort voices. --- includes/Classifai/Providers/AWS/AmazonPolly.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Classifai/Providers/AWS/AmazonPolly.php b/includes/Classifai/Providers/AWS/AmazonPolly.php index 1b2b17332..520810c2e 100644 --- a/includes/Classifai/Providers/AWS/AmazonPolly.php +++ b/includes/Classifai/Providers/AWS/AmazonPolly.php @@ -318,6 +318,9 @@ public function get_voices_select_options( string $engine = '' ): array { ); } + // Sort the options. + asort( $options ); + return $options; }