'type' => CRM_Utils_Type::T_STRING,
),
),
+ 'order_bys' => array(
+ 'sort_name_a' => array(
+ 'title' => ts('Contact A'),
+ 'name' => 'sort_name',
+ 'default_weight' => '1',
+ ),
+ ),
'grouping' => 'contact_a_fields',
),
'civicrm_contact_b' => array(
'type' => CRM_Utils_Type::T_STRING,
),
),
+ 'order_bys' => array(
+ 'sort_name_b' => array(
+ 'title' => ts('Contact B'),
+ 'name' => 'sort_name',
+ 'default_weight' => '2',
+ ),
+ ),
'grouping' => 'contact_b_fields',
),
'civicrm_email' => array(
'default' => TRUE,
),
),
+ 'order_bys' => array(
+ 'label_a_b' => array(
+ 'title' => ts('Relationship A-B'),
+ 'name' => 'label_a_b',
+ ),
+ 'label_b_A' => array(
+ 'title' => ts('Relationship B-A'),
+ 'name' => 'label_b_a',
+ ),
+ ),
'grouping' => 'relation-fields',
),
'civicrm_relationship' => array(
$this->_groupBy = CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, $groupBy);
}
- public function orderBy() {
- $this->_orderBy = " ORDER BY {$this->_aliases['civicrm_contact']}.sort_name, {$this->_aliases['civicrm_contact_b']}.sort_name ";
- }
-
public function postProcess() {
$this->beginPostProcess();