saved sorted data in gridview in database with component

Hi I installed component:

http://www.yiiframework.com/extension/yii2-sortable-grid-view-widget/

And i configured this and sorting work fine but this not saved me sort status in database. I can read there that sorted data is saved in base. How I can save sort data in my mysql database? It work automaticaly or i should write function to save it? I paste this all code in my app and create in database ‘sortOrder’ but there is null all time. This is my controller:


public function actions() {

        return [

            'sort' => [

                'class' => SortableGridAction::className(),

                'modelName' => SmUserCategory::className(),

            ],

        ];

    }

and my model:


public function behaviors()

    {

        return [

            'sort' => [

            'class' => SortableGridBehavior::className(),

            'sortableAttribute' => 'sortOrder'

        ],

        ];

    }

[color="#006400"]/* Moved from "General" to "Extensions" */[/color]