ElementBuilderGroupExtensions.

SortElements(IElementBuilderGroup, Comparison<ElementBuilder>) Method

Summary

Sorts the Weaver.Editor.Procedural.Scripting.IElementBuilderGroup.Elements list using the specified `comparison` and maintaining the order of any elements with an identical comparison (unlike the standard System.Collections.Generic.List`1.Sort(System.Comparison{`0}) method).

This method is also called recursively for any nested groups.

Syntax

public static void SortElements(this IElementBuilderGroup group, Comparison<ElementBuilder> comparison)

Parameters

Name Type Description
group IElementBuilderGroup
comparison Comparison<ElementBuilder>

Return Value

Type Description
void