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 02823b0d20
commit 19986a8143
1 changed files with 1 additions and 1 deletions

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);