Tree.

WithSort(Comparison<IDocument>) Method

Summary

This specifies how the children of a given tree node should be sorted. The default behavior is to sort based on the string value of the last component of the child node's tree path (I.e., the folder or file name). The output document for each tree node is used as the input to the sort delegate.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Metadata
Containing Type
Tree

Syntax

public Tree WithSort(Comparison<IDocument> sort)

Parameters

Name Type Description
sort Comparison<IDocument> A comparison delegate.

Return Value

Type Description
Tree The current module instance.
GitHub