When I search for Cases, the search results are sortable by clicking on any of the column headings except for Subject and Case Manager. I would like to order the results by Subject - either by clicking on the Subject column heading, or by editing the appopriate php or tpl file so that the results are ordered by Subject by default. Can someone please point me in the right direction for the file(s) which I should edit to change the sort order? Thank you.

1 Answer 1


I found an answer - by editing the file com_civicrm/civicrm/CRM/Case/Selector/Search.php. I inserted the following line after line 427:

'sort' => 'case_subject',

This makes the Subject column clickable for sorting.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.