Fix #7622: Allow yii\data\ArrayDataProvider to control the sort flags for sortModels through yii\data\Sort::sortFlags property

This commit is contained in:
Arthur Skobara
2020-02-04 15:56:35 +07:00
committed by GitHub
parent 15d425a3e3
commit a19dd48b79
4 changed files with 34 additions and 1 deletions

View File

@ -186,6 +186,12 @@ class Sort extends BaseObject
*/
public $urlManager;
/**
* @var int Allow to control a value of the fourth parameter which will be
* passed to [[ArrayHelper::multisort()]]
* @since 2.0.33
*/
public $sortFlags = SORT_REGULAR;
/**
* Normalizes the [[attributes]] property.