diff --git a/app/fax/fax.php b/app/fax/fax.php index 3fe82ccc6d..d5ca8bd684 100644 --- a/app/fax/fax.php +++ b/app/fax/fax.php @@ -102,6 +102,7 @@ require_once "resources/paging.php"; //show all fax extensions $sql = "select * from v_fax "; $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "order by fax_name asc "; } else { //show only assigned fax extensions @@ -109,6 +110,7 @@ require_once "resources/paging.php"; $sql .= "where f.fax_uuid = u.fax_uuid "; $sql .= "and f.domain_uuid = '".$_SESSION['domain_uuid']."' "; $sql .= "and u.user_uuid = '".$_SESSION['user_uuid']."' "; + $sql .= "order by f.fax_name asc "; } if (strlen($order_by) > 0) { $sql .= "order by $order_by $order "; } $sql .= "limit $rows_per_page offset $offset ";