Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
SortOrder
Used by UIGridStyleLayout.SortOrder to order the elements in the layout.

Items
| Name | Value | Description |
|---|---|---|
| Name | 0 | Elements are ordered by their Instance.Name in alphanumeric order. |
| Custom | 1 | Elements are ordered by the function passed to UIGridStyleLayout:SetCustomSortFunction(). |
| LayoutOrder | 2 | Elements are ordered by GuiObject.LayoutOrder in ascending order; for example 0 will be placed before 1. |
Name
Elements are ordered by their Instance.Name in alphanumeric order.
| Field | Value |
|---|---|
| value | 0 |
Custom
Deprecated.
Elements are ordered by the function passed to UIGridStyleLayout:SetCustomSortFunction().
| Field | Value |
|---|---|
| value | 1 |
| tags | ["Deprecated"] |
LayoutOrder
Elements are ordered by GuiObject.LayoutOrder in ascending order; for example 0 will be placed before 1.
| Field | Value |
|---|---|
| value | 2 |