This is a widget which renders a bootstrap ButtonDropdown based on sort object of widgets like ListView.
View it on github:
Install it through composer:
Either run
php composer.phar require rsr/yii2-button-dropdown-sorter
or add
"rsr/yii2-button-dropdown-sorter": "*"
to the require section of your composer.json file.