Skip to content

Commit

Permalink
Add default date (desc) sort wrt #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Lott committed Mar 4, 2019
1 parent 65670cc commit e0e5edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/ActivityTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function getActivities($contact_id) {
'id' => ['IN' => $activity_ids],
'return' => $return_fields,
'sequential' => TRUE,
'options' => ['limit' => 0],
'options' => ['limit' => 0, 'sort' => 'activity_date_time DESC'],
];
// Do API call.
$result = civicrm_api3('Activity', 'get', $params);
Expand Down

0 comments on commit e0e5edb

Please sign in to comment.