This specifies how the children of a given tree node should be sorted.
The default behavior is to preserve the original sorting order of the input documents.
- Namespace
- Statiq
.Core - Containing Type
- CreateTree
Syntax
public CreateTree WithSort(Func<IDocument, IDocument, IExecutionContext, int> sort)
Parameters
| Name | Type | Description |
|---|---|---|
| sort | Func |
A comparison delegate. |
Return Value
| Type | Description |
|---|---|
| CreateTree | The current module instance. |