I would like to know how to loop through a table from highest to lowest
example
local tablename = {5,2,3,1,6,4}
table.sort(tablename)
that would sort it like {1,2,3,4,5,6}
how could I sort it like {6,5,4,3,2,1} instead of {1,2,3,4,5,6}
I would like to know how to loop through a table from highest to lowest
example
local tablename = {5,2,3,1,6,4}
table.sort(tablename)
that would sort it like {1,2,3,4,5,6}
how could I sort it like {6,5,4,3,2,1} instead of {1,2,3,4,5,6}
Try the solution of the post above.