CRM-20903 Improve ordering of dedupe rules
authorJKingsnorth <john@johnkingsnorth.co.uk>
Tue, 10 Oct 2017 08:18:47 +0000 (09:18 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Tue, 10 Oct 2017 08:18:47 +0000 (09:18 +0100)
CRM/Contact/Page/DedupeRules.php

index 01d420d714d9913088aa44234fce7674b709e67e..350e260321d9f5ebef85579b31fc2892db38ab13 100644 (file)
@@ -132,7 +132,7 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
     // get all rule groups
     $ruleGroups = array();
     $dao = new CRM_Dedupe_DAO_RuleGroup();
-    $dao->orderBy('contact_type,used ASC');
+    $dao->orderBy('contact_type ASC, used ASC, id ASC');
     $dao->find();
 
     $dedupeRuleTypes = CRM_Core_SelectValues::getDedupeRuleTypes();