function LoadTable()
scores = {}
for i,v in pairs(script.Parent.LeaderBoard.Holder.players:GetChildren()) do
table.insert(scores, i,v.Kills.text)
end
if scores[2] ~= nil then
table.sort(scores, function(a,b) return a > b end)
end
end
It sorts the numbers from least to greatest correctly, but once it is given the number 10 it sorts it as the number 1, not accounting for the 0 after it. Why is this happening?
Any help would be appreciated!

1 comment
thank you!