If you had 3 numbers in an array/table like this:
local Scores = {2, 7, 3}
How would you sort them all from high to low or the other way around...
Hey there.
The best method out there is table.sort
it's easy and simple to use and will satisfy your needs.
Here's a link to the API: https://developer.roblox.com/en-us/api-reference/lua-docs/table
If you want to be able to choose which way you can sort the numbers. Please consider using the method down below.
table.sort(table, function(a, b) return a > b end))
You can change the relational conditional operator to fit any need you want.