I have made a LUA table like so for my scoreboard:
Score.Ranks = {}
Score.Ranks["superadmin"] = {name = "Boss", col = Color(183, 109, 253) }
Score.Ranks["operator"] = {name = "Chief", col = Color(254, 129, 1) }
Score.Ranks["commander"] = {name = "Commander", col = Color(222, 54, 54) }
Score.Ranks["moderator"] = {name = "Director", col = Color(53, 225, 227) }
I want to sort this Table such that the 'names' are sorted in the following order when displayed on my scoreboard:
Boss
Director
Commander
Chief
How can I do this?