From c49a1c1ab70fc44070442ba2ad5e471bf89dd7a9 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 26 Aug 2013 15:39:52 +0530 Subject: [PATCH] CRM-13278 --- CRM/Core/BAO/Mapping.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index cd28f41a1d..daea5f6dfa 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -328,7 +328,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { // exclude the address options disabled in the Address Settings $fields[$value] = CRM_Core_BAO_Address::validateAddressOptions($contactFields); - + ksort($fields[$value]); if ($mappingType == 'Export') { $relationships = array(); $relationshipTypes = CRM_Contact_BAO_Relationship::getContactRelationshipType(NULL, NULL, NULL, $value); @@ -560,7 +560,6 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { foreach ($sel1 as $key => $sel) { if ($key) { - asort($mapperFields[$key]); $sel2[$key] = array('' => ts('- select field -')) + $mapperFields[$key]; } } -- 2.25.1