CRM-20863 Improve report list ordering
authorJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 13 Jul 2017 15:47:37 +0000 (16:47 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 13 Jul 2017 15:47:37 +0000 (16:47 +0100)
CRM/Report/Page/InstanceList.php

index fa4e74e39057742aef4dd9f1dce3c80ebb1138bf..f61458202209bb0861d6e84e3d97b687bb9c2813 100644 (file)
@@ -130,7 +130,7 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page {
 
           WHERE v.is_active = 1 {$report}
                 AND inst.domain_id = %1
-          ORDER BY  v.weight";
+          ORDER BY  v.weight ASC, inst.title ASC";
 
     $dao = CRM_Core_DAO::executeQuery($sql, array(
       1 => array(CRM_Core_Config::domainID(), 'Integer'),