Skip to main content

DataSourceOptionsBuilder.Sort(String, Boolean) Method

Specifies data sorting options.

Namespace: DevExtreme.AspNet.Mvc.Builders.DataSources

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataSourceOptionsBuilder Sort(
    string fieldName,
    bool desc = false
)

Parameters

Name Type Description
fieldName String

The option value.

Optional Parameters

Name Type Default
desc Boolean False

Returns

Type
DataSourceOptionsBuilder
See Also