# GridGroupableSortSettingsBuilder

## Methods

### Compare(System.String)

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.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will be evaluated.

#### RETURNS

Returns the current [GridGroupableSortSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridgroupablesortsettingsbuilder) instance.

### Compare(System.Func)

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.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current [GridGroupableSortSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridgroupablesortsettingsbuilder) instance.

### Dir(System.Nullable)

The sort order of the groups according to the group field.The supported values are: "asc" (ascending order) or "desc" (descending order).

#### Parameters

##### value - System.Nullable<[ListSortDirection](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc/listsortdirection)>

The value for Dir

#### RETURNS

Returns the current [GridGroupableSortSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridgroupablesortsettingsbuilder) instance.
