im just wondering if i could invert sort thins in a UI List Layout, i tried putting them by name and using negative numbers and it kinda worked, but after 0 stops actually sorting them, im just wondering what i could do
You could do this
local frame = script.Parent.Frame
local oll = Frame.UIListLayout
-- Remove the UIListLayout so sorting is destroyed for now
oll:Destroy()
-- Sort the affected frames in reverse
table.sort(frame:GetChildren(), function(a, b)
return a.Position.X.Scale > b.Position.X.Scale
end)
-- Readd UIListLayout for the updated sorting
local nll = Instance.new("UIListLayout",Frame)