/**
  * @inheritDoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['sort' => ['class' => SortBehavior::class, 'query' => function (AttributeEnumRecord $r) {
         return AttributeEnumRecord::find()->byRule($r->rule_id);
     }]]);
 }
 public function actionSort($id, $position)
 {
     $this->enum->getSortBehavior()->insertTo($position);
 }