menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Sort a key value table by value with table.sort()
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Sort a key value table by value with table.sort()
GetTheJobDone
Join Date: 2016-04-20
Post Count: 3008
#190003939
Sunday, May 29, 2016 7:14 PM GMT
the key part seems to mess it up keys are numbers
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cntkillme
Join Date: 2008-04-07
Post Count: 49450
#190006470
Sunday, May 29, 2016 7:49 PM GMT
You can only table.sort an array-style tabled, anything else is out of the question because the hash-part of a Lua table has no order.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right