<?php echo \yii2mod\comments\widgets\Comment::widget([
'model' => $model,
'dataProviderConfig' => [
'pagination' => [
'pageSize' => 10
],
'sort' => [
'attributes' => ['id'],
'defaultOrder' => ['id' => SORT_DESC],
],
],
]); ?>