From 016cf4882e05160a1fb5516efade4744e2d59709 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 11 Jul 2017 01:46:10 +0530 Subject: [PATCH] CRM-20673: maintain same tag order on both edit form and manage tag page --- CRM/Core/BAO/Tag.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Tag.php b/CRM/Core/BAO/Tag.php index f2840268ea..51ab59370f 100644 --- a/CRM/Core/BAO/Tag.php +++ b/CRM/Core/BAO/Tag.php @@ -333,7 +333,10 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag { */ public static function getColorTags($usedFor = NULL, $allowSelectingNonSelectable = FALSE, $exclude = NULL) { $params = array( - 'options' => array('limit' => 0), + 'options' => array( + 'limit' => 0, + 'sort' => "name ASC", + ), 'is_tagset' => 0, 'return' => array('name', 'description', 'parent_id', 'color', 'is_selectable', 'used_for'), ); -- 2.25.1