$attributes public property
List of attributes that are allowed to be sorted. Its syntax can be described using the following example: [
'age',
'name' => [
'asc' => ['first_name' => SORT_ASC, 'last_name' => SORT_ASC],
'desc' => ['first_name' => SORT_DESC, 'last_name' => SORT_DESC],
'default' => SORT_DESC,
'label' => 'Name',
],
]
In the above, two attributes are declared: age and name. The age attribute is a simple attri