# Enumeration TreeSorting

GoJS® Diagramming Components
version 3.0.5
by Northwoods Software®

This enumeration specifies whether to sort the children of a node, and in what order to position them. Used for TreeLayout.sorting or TreeLayout.alternateSorting.

`since`

3.0

#####
Index

### Enumeration Members

Ascending
Descending
Forwards
Reverse

## Enumeration Members

### Ascending

Lay out each child according to the sort order given by TreeVertex.comparer.

### Descending

Lay out each child in reverse sort order given by TreeVertex.comparer.

### Forwards

Lay out each child in the order in which they were found.

### Reverse

Lay out each child in reverse order from which they were found.

Copyright © 1998-2024 by Northwoods Software Corporation.