Table sorting not working

I’m trying to sort a table. It’s not really functioning like I want it to…

This “sort” thing does absolutely nothing to the table. Did I do anything wrong or what can I do to achieve what I want?

table.sort only works on arrays.
like

local topBuilds = {
       {Votes = 5},
       {Votes = 9}
}

Ohh… thanks! I can fix that easily :slight_smile:

Is there a way to get information from an array? Like getting a value inside of the table

In this case you’d just do [Position].Votes

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.