# SortMethod

> Specifies the sorting method.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.6/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public enum SortMethod
```

## Remarks

Use [SortMethod](/engine/6000.6/script-reference/unity/graphtoolkit/editor/sortmethod.md) to define how elements are sorted, either by their creation order or their display order.

## Fields

| Value                                                                                        | Description                                      |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [Creation](/engine/6000.6/script-reference/unity/graphtoolkit/editor/sortmethod/creation.md) | The sorting is done based on the creation order. |
| [Display](/engine/6000.6/script-reference/unity/graphtoolkit/editor/sortmethod/display.md)   | The sorting is done based on the display order.  |
