OrderBy
An OrderBy is a single sort criterion. Pass a list of them to Filter, Segment, or Summary — they apply in Sort order (lower first).
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Sort | int | – | Priority order (lower = first). |
Field | string? | – | Property path to sort by. |
Direction | Direction | Ascending | Sort direction. |
Note
Default direction is
Ascending — you can omit it for ascending sorts.C# example
var orders = new List<OrderBy>
{
new OrderBy { Sort = 1, Field = "CreatedAt", Direction = Direction.Descending },
new OrderBy { Sort = 2, Field = "Name" } // ascending by default
};JSON example
[
{ "sort": 1, "field": "CreatedAt", "direction": "Descending" },
{ "sort": 2, "field": "Name", "direction": "Ascending" }
]