Hello,
I want to display a time leaderboard but there's a catch :
How can i sort this table below in increasing number and at the same time put the "0" at the end ?
local players = { "0", "2", "1", "3" }
I tried this but the "0" gets in 1st position
table.sort(players, function(a,b)
return a:GetResource(propResourceToTrack) < b:GetResource(propResourceToTrack)
end)
Result :
local players = { "0", "1", "2", "3" }
Desired Result :
local players = { "1", "2", "3", "0"}