When I loop through this folder and add all of the values to a table will it put them in alphabetical order?
Would the table look like {20, true, 1}
20 is the card amount
true is card owned
1 is the level
Thanks
When I loop through this folder and add all of the values to a table will it put them in alphabetical order?
Would the table look like {20, true, 1}
20 is the card amount
true is card owned
1 is the level
Thanks
No. The order seems to be based on when the instances were added, but if you want this just do
local children = folder:GetChildren()
table.sort(children, function(a, b)
return a.Name < b.Name
end)
So that it sorts based on recursive alphabetical order