Answers.Body: <p>You would have to create a new report type in an extension using code that <code>extends</code> the existing CRM_Report_Form_Contact_Summary class, and add modified_date into the order_by section. In here <a href="https://github.com/civicrm/civicrm-core/blob/539eb78da2cbf9834c5799e3e5e5a6ccbff08ff4/CRM/Report/Form/Contact/Summary.php#L65" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/539eb78da2cbf9834c5799e3e5e5a6ccbff08ff4/CRM/Report/Form/Contact/Summary.php#L65</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-02T20:56:00.210Z
Answers.Text: the civix tool makes that pretty straightforward. Alternatively, you could submit a patch if you think adding the sort field the existing report would be generally of value to others.
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-05T21:06:52.040Z
Answers.Text: I actually ended up using Search Kit to create search I needed and duplicate report, and you can more easily re-arrange the columns and make all columns sortable.
Answers.UserDisplayName: jsherk
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-02T15:24:40.030Z
Answers.LastActivityDate: 2022-08-02T15:24:40.030Z
Answers.UserDisplayName: Demerit
Body: <p>I am working with the Constituent Summary report and then saving a copy with the fields that I want displayed.</p>
  <p>One of the fields is Modified Date, but when I go to SORTING, Modified Date is not one of the options.</p>
  <p>How can I add Modified Date field to the sorting options of Reports?</p>
  <p>Thanks</p>
  
Tags: <wordpress><civireport><reports><custom-reports>
Title: Sorting of Reports by Modified Date
ThreadText: # Sorting of Reports by Modified Date
  
  (Asked by: username_0 on 2022-08-02)
  
  I am working with the Constituent Summary report and then saving a copy with the fields that I want displayed.
  
  One of the fields is Modified Date, but when I go to SORTING, Modified Date is not one of the options.
  
  How can I add Modified Date field to the sorting options of Reports?
  
  Thanks
  
  **Tags:** wordpress, civireport, reports, custom-reports
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-08-02. Score: 1 | Accepted answer
  
  You would have to create a new report type in an extension using code that `extends` the existing CRM\_Report\_Form\_Contact\_Summary class, and add modified\_date into the order\_by section. In here <https://github.com/civicrm/civicrm-core/blob/539eb78da2cbf9834c5799e3e5e5a6ccbff08ff4/CRM/Report/Form/Contact/Summary.php#L65>
  
  > **Comments:**
  > **username_2**: the civix tool makes that pretty straightforward. Alternatively, you could submit a patch if you think adding the sort field the existing report would be generally of value to others.  
  > **username_0**: I actually ended up using Search Kit to create search I needed and duplicate report, and you can more easily re-arrange the columns and make all columns sortable.  
  
  ---
  
  