diff --git a/app/extensions/extension_dashboard.php b/app/extensions/extension_dashboard.php index 910678ff90..aabc92e179 100644 --- a/app/extensions/extension_dashboard.php +++ b/app/extensions/extension_dashboard.php @@ -134,7 +134,7 @@ $sql = "select destination_caller_id_name, destination_caller_id_number from v_destinations "; $sql .= "where domain_uuid = '".check_str($_SESSION['domain_uuid'])."' "; $sql .= "and destination_type = 'inbound' "; - $sql .= "order by destination_number asc "; + $sql .= "order by destination_caller_id_name asc, destination_caller_id_number asc"; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $destinations = $prep_statement->fetchAll(PDO::FETCH_ASSOC);