I got alot of values in a folder that are all named a specific number, I want to sort these numbers with table.sort but something isn't working correctly because my result is:
10, 11, 11, 11, 110, 12, 122, 1268, 15, 16, 18, 20, 29, 38, 40, 95
local children = script.results:GetChildren()
local sorted = {}
for i=1,#child do
local text = children[i].Name
tonumber(text)
table.insert(sorted, text)
end
table.sort(sorted)
print(table.concat(sorted, ', '))
