$this->_vars[$this->_currentSortID]['direction'] == self::DONTCARE
) {
$this->_vars[$this->_currentSortID]['name'] = str_replace(' ', '_', $this->_vars[$this->_currentSortID]['name']);
+ // quidam: hack to reorder by country,second_name,first_name on pdf generation
+ // un-comment next two lines to re-enable quidam's hack
+ //if ($this->_vars[$this->_currentSortID]['title'] == 'Country'){
+ // return CRM_Utils_Type::escape($this->_vars[$this->_currentSortID]['name'], 'MysqlColumnNameOrAlias') . ' asc,last_name asc,first_name asc'; }
return CRM_Utils_Type::escape($this->_vars[$this->_currentSortID]['name'], 'MysqlColumnNameOrAlias') . ' asc';
}
else {
$this->_vars[$this->_currentSortID]['name'] = str_replace(' ', '_', $this->_vars[$this->_currentSortID]['name']);
+ // quidam: hack to reorder by country,second_name,first_name on pdf generation
+ // un-comment next two lines to re-enable quidam's hack
+ //if ($this->_vars[$this->_currentSortID]['title'] == 'Country'){
+ // return CRM_Utils_Type::escape($this->_vars[$this->_currentSortID]['name'], 'MysqlColumnNameOrAlias') . ' desc,last_name asc,first_name asc'; }
return CRM_Utils_Type::escape($this->_vars[$this->_currentSortID]['name'], 'MysqlColumnNameOrAlias') . ' desc';
}
}