From 5788b114027c8e00d3a0f030943cb4ef01e0367c Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 29 Jan 2015 07:14:57 +0000 Subject: [PATCH] Remove order by on the select count for ring_groups.php as its not needed. --- app/ring_groups/ring_groups.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/ring_groups/ring_groups.php b/app/ring_groups/ring_groups.php index b6d62c2e7d..39db66cba7 100644 --- a/app/ring_groups/ring_groups.php +++ b/app/ring_groups/ring_groups.php @@ -68,12 +68,6 @@ require_once "resources/paging.php"; //prepare to page the results $sql = "select count(*) as num_rows from v_ring_groups "; $sql .= "where domain_uuid = '$domain_uuid' "; - if (strlen($order_by) == 0) { - $sql .= "order by ring_group_name, ring_group_extension asc "; - } - else { - $sql .= "order by $order_by $order "; - } $prep_statement = $db->prepare($sql); if ($prep_statement) { $prep_statement->execute();