# Enum.SortOrder

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/SortOrder/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/SortOrder

Used by [`UIGridStyleLayout.SortOrder`](https://rapi.sleaze.dev/classes/UIGridStyleLayout.md) to order the elements in the layout.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Name` | 0 | Elements are ordered by their [`Instance.Name`](https://rapi.sleaze.dev/classes/Instance.md) in alphanumeric order. |
| `Custom` | 1 | Deprecated. **Deprecated:** Elements are ordered by the function passed to [`UIGridStyleLayout:SetCustomSortFunction()`](https://rapi.sleaze.dev/classes/UIGridStyleLayout.md). |
| `LayoutOrder` | 2 | Elements are ordered by [`GuiObject.LayoutOrder`](https://rapi.sleaze.dev/classes/GuiObject.md) in ascending order; for example `0` will be placed before `1`. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [UIGridStyleLayout](https://rapi.sleaze.dev/classes/UIGridStyleLayout.md): property `SortOrder`
