Order by the delay first the destination for ring groups.

This commit is contained in:
Mark Crane
2013-09-08 05:14:02 +00:00
parent ed5f999943
commit 57dabf6221

View File

@@ -533,7 +533,7 @@ else {
$sql = "SELECT * FROM v_ring_group_destinations ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and ring_group_uuid = '".$ring_group_uuid."' ";
$sql .= "order by destination_number asc ";
$sql .= "order by destination_delay, destination_number asc ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);