Anyone knows how to sort the leaderboard by stats highest to lowest?
I thought it was the default behaviour…
Same. What???
Can we see your script for this?
It is, but not for strings, only for numbers. You have to use IntValues or NumberValues for it to be highest to lowest. It’s in a wacky order for strings because it goes from the highest starting number to the lowest starting number.
E.g 90 → 8000 → 6 → 400000000 → 300000 → 200
Not wacky order. Strings are compared alphanumerically while numbers are a literal comparison of greatest to least. 104 is lower than 27 because alphanumeric comparison goes by each position in the string. When comparing the first graphemes of the altitudes two from the bottom, 2 > 1, so 104 is lower than 27. Meanwhile, numerically, because 104 is greater than 27, the orders would be reversed. You have the idea by pointing out the comparison with the bold but the explanation is a bit off since this is expected behaviour and not “wacky”.
Thanks for the info colbert2677
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.