From a6572737302afa4ab79de5dc16297c73d4b2e844 Mon Sep 17 00:00:00 2001 From: Allen Shaw Date: Thu, 21 Dec 2017 12:30:15 -0600 Subject: [PATCH] Fix CRM-21589: "Repeat Contributions" report ignores sort. --- CRM/Report/Form/Contribute/Repeat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) { -- 2.25.1