Order in UiGridLayout

I’m making a credits page, that uses the UiGridLayout tool to order the developers, but I can’t seem to order them through their roles, does anyone have a solution for this? I’ve tried messing with SortOrder but I couldn’t find anything.

I’m expecting it to order it “HEAD DEVELOPER” at the top, maybe “CO-OWNER” next, then the other developers after.

3 Likes

I just renamed each new clone of the frame to i, so 1, 2, 3 in the prder that they are cloned in the Explorer and changed SortOrder to Name.

3 Likes

I know you already fixed this, but you can also use the LayoutOrder property on the frames in the future.

1 Like

How would I use LayoutOrder in this?

for i, v in pairs(ReplicatedStorage.DeveloperSettings:GetChildren()) do
	if v:IsA("Folder") then
		local newFrame = ReplicatedStorage.DeveloperFrame:Clone()
		newFrame.Name = i
		newFrame.Parent = sp
		newFrame.DevName.Text = v.DevName.Value
		newFrame.DevRole.Text = v.Role.Value
		newFrame.DevName.TextColor3 = v.NameColour.Value
		
	end
end

(Clones DeveloperFrame for every instance of a folder I have for developer settings in RS.)

EDIT: I just added newFrame.LayoutOrder = v.Order.Value to this script and added an IntValue to v, so I can manually change each LayoutOrder