Show newest emails first

This commit is contained in:
FusionPBX 2025-01-01 11:26:44 -07:00 committed by markjcrane
parent 44983289fa
commit 933d06d96d
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@
$sql = "select * from v_email_queue ";
$sql .= "where (email_status = 'waiting' or email_status = 'trying') ";
$sql .= "and hostname = :hostname ";
$sql .= "order by domain_uuid asc ";
$sql .= "order by domain_uuid, email_date desc ";
$sql .= "limit :limit ";
$parameters['hostname'] = $hostname;
$parameters['limit'] = $email_queue_limit;