Class SortOption
Represents a sort option used for ordering query results in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class SortOption
Constructors
View SourceSortOption()
Declaration
public SortOption()
Properties
View SourceDirection
Gets or sets the sort direction.
Declaration
public required Direction Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| Direction |
FieldName
Gets or sets the name of the field to sort by.
Declaration
public required string FieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |