From: Allen Shaw Date: Thu, 21 Dec 2017 18:30:15 +0000 (-0600) Subject: Fix CRM-21589: "Repeat Contributions" report ignores sort. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a6572737302afa4ab79de5dc16297c73d4b2e844;p=civicrm-core.git Fix CRM-21589: "Repeat Contributions" report ignores sort. --- diff --git a/CRM/Report/Form/Contribute/Repeat.php b/CRM/Report/Form/Contribute/Repeat.php index 81821de823..1d84e5bdba 100644 --- a/CRM/Report/Form/Contribute/Repeat.php +++ b/CRM/Report/Form/Contribute/Repeat.php @@ -829,10 +829,11 @@ GROUP BY currency $this->from(); $this->where(); $this->groupBy(); + $this->orderBy(); $this->limit(); $count = 0; - $sql = "{$this->_select} {$this->_from} {$this->_where} {$this->_groupBy} {$this->_limit}"; + $sql = "{$this->_select} {$this->_from} {$this->_where} {$this->_groupBy} {$this->_orderBy} {$this->_limit}"; $dao = $this->executeReportQuery($sql); $rows = array(); while ($dao->fetch()) {