I am making a Highscore gui. Basically, I have a table that includes all the children of a folder named PlayerNames. All of these children are Int Values with a number as their value. How would I rank these numbers from greatest to lowest? Some of the numbers will also likely be the same.
Here is the code I started
for _,v in pairs(PlayerNames:GetChildren()) do
--The numbers would be v.Value
--this is where they are sorted
end

1 comment
Thanks! Also, how would I get v.Name to go along with v.Value? I'm a bit inexperienced when it comes to tables.