Order by based on delay and then the destination number

This commit is contained in:
FusionPBX
2023-05-31 20:21:32 -06:00
committed by GitHub
parent 787fec4d5e
commit 6793ab363f

View File

@@ -476,7 +476,7 @@
$sql = "select * from v_follow_me_destinations ";
$sql .= "where follow_me_uuid = :follow_me_uuid ";
$sql .= "order by follow_me_order asc ";
$sql .= "order by follow_me_delay, follow_me_destination asc ";
$parameters['follow_me_uuid'] = $follow_me_uuid;
$database = new database;
$result = $database->select($sql, $parameters ?? null, 'all');