$this, FALSE, 0
);
- if ($this->_sortByCharacter == 1 ||
+ if ($this->_sortByCharacter == 'all' ||
!empty($_POST)
) {
$this->_sortByCharacter = '';
SELECT id
FROM civicrm_contribution_page
WHERE $whereClause
+ ORDER BY is_active desc, title asc
LIMIT $offset, $rowCount";
$contribPage = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Contribute_DAO_ContributionPage');
$contribPageIds = array();
SELECT *
FROM civicrm_contribution_page
WHERE $whereClause
-ORDER BY title asc
+ORDER BY is_active desc, title asc
LIMIT $offset, $rowCount";
$dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Contribute_DAO_ContributionPage');