Does Looping Through A Folder And Adding Contents To A Table Automatically Put Them In Alphabetical Order?

When I loop through this folder and add all of the values to a table will it put them in alphabetical order?
Annotation 2020-08-01 134710

Would the table look like {20, true, 1}
20 is the card amount
true is card owned
1 is the level

Thanks

2 Likes

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

8 Likes