Search
LayeredLayout.StableSort Property
See Also
 





Gets or sets a value indicating whether to apply stable sorting during the layout algorithm.

Namespace: MindFusion.Diagramming.Layout
Assembly: MindFusion.Diagramming.Layout

 Syntax

C#  Copy Code

public bool StableSort { get; set; }

Visual Basic  Copy Code

Public Property StableSort As Boolean

 Property Value

true to apply stable sorting algorithm, otherwise false. The default value is false.

 Remarks

By default .NET sorts arrays using unstable sort, where if two elements have equal values, their order might not be the same between different runs of the sort method. This could lead to LayeredLayout not preserving the order of some nodes in a layer between different runs if there are more than one candidates for the same position. If you need the same order to be reproduced consistently, set StableSort to true.

 See Also