1 min read

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

NameValueDescription
Name0Elements are ordered by their Instance.Name in alphanumeric order.
Custom1Elements are ordered by the function passed to UIGridStyleLayout:SetCustomSortFunction().
LayoutOrder2Elements 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.

FieldValue
value0

Custom

Deprecated.

Elements are ordered by the function passed to UIGridStyleLayout:SetCustomSortFunction().

FieldValue
value1
tags["Deprecated"]

LayoutOrder

Elements are ordered by GuiObject.LayoutOrder in ascending order; for example 0 will be placed before 1.

FieldValue
value2