Skip to content

Instantly share code, notes, and snippets.

@mollux
Created May 9, 2016 18:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mollux/d1fd488f56d13ded699c5620e603eb13 to your computer and use it in GitHub Desktop.
Save mollux/d1fd488f56d13ded699c5620e603eb13 to your computer and use it in GitHub Desktop.
giff --git a/CRM/Utils/Sort.php b/CRM/Utils/Sort.php
index 789dba3..85b55f0 100644
--- a/CRM/Utils/Sort.php
+++ b/CRM/Utils/Sort.php
@@ -121,7 +121,7 @@ class CRM_Utils_Sort {
foreach ($vars as $weight => $value) {
$this->_vars[$weight] = array(
- 'name' => CRM_Utils_Type::validate($value['sort'], 'MysqlColumnName'),
+ 'name' => CRM_Utils_Type::validate($value['sort'], 'String'),
'direction' => CRM_Utils_Array::value('direction', $value),
'title' => $value['name'],
);
@nilamhpatel
Copy link

nilamhpatel commented Aug 29, 2016

It's Working. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment