\Kendo\UI\GridGroupableSort
A PHP class representing the sort setting of GridGroupable.
Methods
compare
A JavaScript function which is used to compare the groups (refer to sortable for sorting the items of the groups). It has the same signature as the compare function accepted by Array.sort.
Returns
\Kendo\UI\GridGroupableSort
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$sort = new \Kendo\UI\GridGroupableSort();
$sort->compare(new \Kendo\JavaScriptFunction('function() { }'));
?>
dir
The sort order of the groups according to the group field.The supported values are: "asc" (ascending order) or "desc" (descending order).
Returns
\Kendo\UI\GridGroupableSort
Parameters
$value string
Example
<?php
$sort = new \Kendo\UI\GridGroupableSort();
$sort->dir('value');
?>