diff --git a/framework/yii/data/Sort.php b/framework/yii/data/Sort.php index 4d7851a..bddc96b 100644 --- a/framework/yii/data/Sort.php +++ b/framework/yii/data/Sort.php @@ -203,6 +203,8 @@ class Sort extends Object 'desc' => array($name => self::DESC), 'label' => Inflector::camel2words($name), ), $attribute); + } else { + $attributes[$name] = $attribute; } } $this->attributes = $attributes;