Sort Class

Summary

Sorts the input documents based on the specified comparison delegate.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Control
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["Sort"] class Type type-node

Syntax

public class Sort : IModule

Remarks

The sorted documents are output as the result of this module. This is similar to the Wyam.Core.Modules.Control.OrderBy module but gives greater control over the sorting process.

Constructors

Name Summary
Sort(Comparison<IDocument>) Creates a sort module.

Methods

Name Value Summary
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
GitHub