Currently cases with recent activities are sorted oldest>newest - i'd like the newest to be at the top.
I am guessing i could do it within Case/Page/DashboardSelector.tpl but i'm floundering from there.. is it possible? thanks!
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
I don't think you can do it in the smarty template but since you might want the sorting of similar listings to be consistent anywhere it's used you could just change line 545 in CRM_Case_BAO_Case::getCaseActivityQuery() so that it sorts descending.
$query .= " ORDER BY case_recent_activity_date ASC ";
$query .= " ORDER BY case_recent_activity_date DESC ";
Obviously editing core files directly isn't recommended, but that's where the sorting happens for this.