Class SortExpression
Represents a sort expression for ordering query results.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.TemplateQuery
Assembly: Umbraco.Core.dll
Syntax
public class SortExpression
Constructors
View SourceSortExpression()
Declaration
public SortExpression()
Properties
View SourceDirection
Gets or sets the sort direction (e.g., "ascending" or "descending").
Declaration
public string? Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Property
Gets or sets the property to sort by.
Declaration
public PropertyModel? Property { get; set; }
Property Value
| Type | Description |
|---|---|
| PropertyModel |